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
By jQuery,
jQuery( function( $ ) { $( document ).ready(function() { var strapatt = document.getElementById('bootstrap-css'); strapatt.setAttribute("integrity", "sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb"); strapatt.setAttribute("crossorigin", "anonymous"); }); });