08-Jun-2016, 02:37 PM
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
Can be this code disabled?
Example page:
http://www.freegbaroms.com/game/altered-...the-realms
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