Title: Weird lengthy javascript code appearing before page header
Last modified: August 20, 2016

---

# Weird lengthy javascript code appearing before page header

 *  [Jeremiah Agenyi](https://wordpress.org/support/users/lajerrycares/)
 * (@lajerrycares)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/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,"d`
 * This 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: 0
       ```
   
 * My 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.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [Jeremiah Agenyi](https://wordpress.org/support/users/lajerrycares/)
 * (@lajerrycares)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/weird-lengthy-javascript-code-appearing-before-page-header/#post-3461099)
 * Here is a link to a screenshot of the error: [http://www.tiikoni.com/tis/view/?id=7854506](http://www.tiikoni.com/tis/view/?id=7854506)
 *  [pressingprojects](https://wordpress.org/support/users/pressingprojects/)
 * (@pressingprojects)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/weird-lengthy-javascript-code-appearing-before-page-header/#post-3461110)
 * It looks as though your site has been hacked possibly
 *  Thread Starter [Jeremiah Agenyi](https://wordpress.org/support/users/lajerrycares/)
 * (@lajerrycares)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/weird-lengthy-javascript-code-appearing-before-page-header/#post-3461112)
 * Wow! Okies….but any ideas how to go about this kind of hack?…I’ve never dealt
   with something like this before.
 *  [rbnseven](https://wordpress.org/support/users/rbnseven/)
 * (@rbnseven)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/weird-lengthy-javascript-code-appearing-before-page-header/#post-3461184)
 * and fix your problem? happens to me exactly the same …

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Weird lengthy javascript code appearing before page header’ is closed
to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [rbnseven](https://wordpress.org/support/users/rbnseven/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/weird-lengthy-javascript-code-appearing-before-page-header/#post-3461184)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
