PennController for IBEX › Forums › Support › html code with embedded script › Reply To: html code with embedded script
June 2, 2020 at 2:03 pm
#5566

Keymaster
No as long as you have it in your scripts it will load, so you no longer need:
var HeadphoneCheckScriptTag = document.createElement("script"); HeadphoneCheckScriptTag.src = "https://s3.amazonaws.com/mcd-headphone-check/v1.0/src/HeadphoneCheck.min.js"; document.head.appendChild( HeadphoneCheckScriptTag );
But maybe move this to the top of HeadphoneCheck.js:
jQuery.prototype.on = function(...args) { return jQuery.prototype.bind.apply(this, args); } jQuery.prototype.prop = function(...args) { return jQuery.prototype.attr.apply(this, args); }
Jeremy