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>

Leave a Comment