Wordpress script with integrity and crossorigin

前端 未结 7 1189
旧时难觅i
旧时难觅i 2021-02-03 12:07

I\'m trying to use the wp_register_script and wp_enqueue_script FUNCTION on WordPress to enqueue a script, which has two attributes: \"integrity\" and \"crossorigin\".

N

7条回答
  •  忘了有多久
    2021-02-03 12:27

    You can add a CDN with integrity with Crossorigin by using add_action :

    function add_jquery(){
    echo '';
     }
    
     add_action( 'wp_head', 'add_jquery' );
    

提交回复
热议问题