This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Disabling inclusion of jQuery
#1

Hello,
I have integrate Commentics in my site (example page below) and I would like to disable the re-loading of jQuery.

I have seen there is some javascript which chjeck and includes jQuery only if it has not been loaded yet, but since my site already uses a dynamic approach and loads jQuery when the footer is rendered, I would like to make sure that no other jQuery is loaded first.

In my page, commentics gets rendered before the footer so this code does the loading, where it shouldn't

Code:
<script type="text/javascript">
// <![CDATA[
if (typeof jQuery == 'undefined') {
    document.write('<scr' + 'ipt type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></scr' + 'ipt>');
}
// ]]>
</script>


Can be this code disabled?

Example page:
http://www.freegbaroms.com/game/altered-...the-realms
Reply
#2

Hi,

If you're loading jQuery yourself in the footer then you can remove the section of code that you posted.

In Commentics v3 there will be an admin setting to control this.

Have you completed the interview?
Reply
#3

Thank you. I have found and modified code in includes/template/head.php, I still have very good page performance.

I will fill out and post the interview ASAP!
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post

Forum Jump:


Users browsing this thread: 1 Guest(s)