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

前端 未结 4 684
栀梦
栀梦 2020-12-01 04:15

I inserted the following code in a WordPress plugin:

   wp_deregister_script(\'jquery\');
   wp_register_script(\'jquery\', \"http://ajax.go         


        
4条回答
  •  情歌与酒
    2020-12-01 04:56

    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.

提交回复
热议问题