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

前端 未结 4 683
栀梦
栀梦 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:39

    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).

提交回复
热议问题