WordPress.org

Ready to get started?Download WordPress

Forums

WordPress has changed my javascript code. (4 posts)

  1. DouglasSteinberg
    Member
    Posted 3 years ago #

    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.

  2. dauidus
    Member
    Posted 3 years ago #

    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.

  3. dauidus
    Member
    Posted 3 years ago #

    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!

  4. laslo
    Member
    Posted 2 years ago #

    Hi,
    I just got the same issue.
    It turned out to be the "Rocket Loader" thing:
    https://twitter.com/#!/CloudFlare/status/128564202406285312

    the Minify feature seems to be working ok. I disabled Rocket Loader and my script worked fine again!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.