edwardsmarkf
Coder
hello -
i have used the following syntax a number of times with much success:
however, i am unable to determine how to use this same approach to replace the following code:
is this even possible?
i have used the following syntax a number of times with much success:
JavaScript:
let script = document.createElement('script') ;
script.src = '/js/myJavaScript.js' ;
script.type = 'text/javascript' ;
script.async = false ;
const scripts = document.getElementsByTagName('script')[0] ;
scripts.parentNode.insertBefore(script, scripts) ;
JavaScript:
import myName from '/js/myJavaScript.js' ;