Title: WordPress has changed my javascript code.
Last modified: August 20, 2016

---

# WordPress has changed my javascript code.

 *  [DouglasSteinberg](https://wordpress.org/support/users/douglassteinberg/)
 * (@douglassteinberg)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wordpress-has-changed-my-javascript-code/)
 * Hello,
 * I was instructed to put the following code into my website:
 *     ```
       <script language="javascript"
       src="http://cache.blogads.com/858400020/feed.js"></script><br/><a
       href="http://www.blogads.com">blog advertising</a> is good for you
       ```
   
 * So I put it in a text widget. However, after the page loads in my browser, the
   code looks like this if I view page source:
 *     ```
       <script language="javascript"
       data-djssrc="http://cache.blogads.com/858400020/feed.js" type="text/djs" >
       </script>
       <br/>
       <a href="http://www.blogads.com">blog advertising</a> is good for you
       ```
   
 * Note the differences like “src” has been replaced by “data-djssrc” and type=”
   text/djs” has also been inserted by itself. Can anyone explain what is causing
   this and whether this is stopping it from running.
 * Thank you very much for your help.

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

 *  [dauidus](https://wordpress.org/support/users/dauidus/)
 * (@dauidus)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wordpress-has-changed-my-javascript-code/#post-2121320)
 * I have been having the exact same issue… and its really screwing up the way my
   site loads and functions!
 * Do you, by any chance, have CloudFlare enabled? I’m thinking this may be an issue
   with the beta “minify” feature.
 * I’ll let you know if I find anything more.
 *  [dauidus](https://wordpress.org/support/users/dauidus/)
 * (@dauidus)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wordpress-has-changed-my-javascript-code/#post-2121323)
 * DouglasSteinberg
 * Yep, turns out it was CloudFlare that was screwing me up. I just got off the 
   phone with support and their explanation was that this feature “is not ready 
   for implementation.” I’m still not sure why they have it as an option. FTW. Just
   disable that, wait about 30 minutes, and you should have your fancy javascript
   up and working again.
 * Cheers!
 *  [laslo](https://wordpress.org/support/users/laslo/)
 * (@laslo)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/wordpress-has-changed-my-javascript-code/#post-2121489)
 * Hi,
    I just got the same issue. It turned out to be the “Rocket Loader” thing:
   [https://twitter.com/#!/CloudFlare/status/128564202406285312](https://twitter.com/#!/CloudFlare/status/128564202406285312)
 * the Minify feature seems to be working ok. I disabled Rocket Loader and my script
   worked fine again!

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

The topic ‘WordPress has changed my javascript code.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [laslo](https://wordpress.org/support/users/laslo/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/wordpress-has-changed-my-javascript-code/#post-2121489)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
