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

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

    It is easy to fix.

    You must change the following tag:

    add: data-cfasync="false"

    example:

    
    

提交回复
热议问题