Why is WordPress placing "text/rocketscript" instead of "text/javascript" when using wp_register_script()?

It is easy to fix.

You must change the following tag: <script type="text/javascript"></script>

add: data-cfasync="false"

example:

<script data-cfasync="false" type="text/javascript"></script>

Probably one of wordpress plugins is using CloudFlare.

https://support.cloudflare.com/hc/en-us/articles/200168056-What-does-Rocket-Loader-do-

Try disabling all the plugins and re-enabling them one by one to find out which one is causing this issue. It's not a problem actually.


Rocket Loader is not included in any WordPress plugins. You would have to disable Rocket Loader by going to: settings->CloudFlare settings (Performance Settings)->Rocket Loader->Toggle Off (this feature is optional and has to be turned on).

Tags:

Wordpress