• I’ve been trying to tidy up my site and ensure everything is running smoothly.

    http://www.treforestvets.com

    One problem I can’t get past is that something is trying to load jquery from the root folder /jquery.js (instead of wp-includes/js/jquery/jquery.js). This comes up as one of the longest load delays on pingdom.

    If I put a copy of jquery.js in my root folder, whatever is looking for it clearly finds it and there is no 404 console error and load speed increases.

    I get the impression this is not a very good way of fixing it and I should be doing it ‘properly’. I believe I should be sending all jquery requests to the copy included in wordpress core files.

    How do I go about investigating and fixing this problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Sounds like bad theme or plugin. Can you replicate the problem using the default Twenty Fourteen theme with all plugins deactivated?

    Thread Starter user48387

    (@user48387)

    class="screen-reader-shortcut" href="http://www.treforestvets.com/wp-login.php?action=logout&_wpnonce=b479e4949f">Log Out</a></div><script type="text/javascript">function downloadJSAtOnload(){var element=document.createElement("script");element.src="jquery.js";document.body.appendChild(element);}if(window.addEventListener)window.addEventListener("load",downloadJSAtOnload,false);else if(window.attachEvent)window.attachEvent("onload",downloadJSAtOnload);else window.onload=downloadJSAtOnload;</script></body></html>

    appears to be the offending code from the index in console.

    I think it’s related to the admin bar, note the src=jquery.js

    how do i alter this to use jquery properly in WP?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page tried to load JQuery from root folder?’ is closed to new replies.