Weird lengthy javascript code appearing before page header
-
Hi all.
Weird lengthy javascript code appearing before my page header on all pages. Here is what happened…
I finished work on a site on my local server and uploaded. But when I try to view the live site, every page starts with a very, very lengthy string of javascript code starting with:
/*! jQuery v1.6.3 http://jquery.com/ | http://jquery.org/license */ (function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"":"")+""),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"dThis code appears before the page header which you have to get to by scrolling down.
Deactivating the theme(churchope)stops the error…ie using theme twenty twelve and other free themes didn’t show the error.
I also upgraded to the latest wordpress, but no change. I have deactivated all plugins, still no effect. I turned debugging true/false, still no change. Tried different browsers and devices, all the same. Error console from firefox only returned a warning that keeps populating the console. The warning says:
Warning: Unknown pseudo-class or pseudo-element 'first'. Source File: http://my-website-name/ Line: 0My search online reveals that this error is not particular to the theme alone.
Please any insight as to what to do please. Thanks in advance for your time people.
The topic ‘Weird lengthy javascript code appearing before page header’ is closed to new replies.