Suppose I have script source.js.
There are two ways two load it:
<script src="source.js"></script>- via
document.createElementandappendChild
Is it possible from inside source.js to know about the way of loading?
Suppose I have script source.js.
There are two ways two load it:
<script src="source.js"></script>document.createElement and appendChildIs it possible from inside source.js to know about the way of loading?