Is there a way to ensure a javascript file loads just once when reloading an HTML file (which references this javascript file)?
e.g.:
<script src="js/myscript.js" type="text/javascript"></script>
I would like this command to be something like:
<script src="js/myscript.js" type="text/javascript" opt="include_once"></script>
something like the PHP command include_once()...
... Is there a native way to do this (through the native script tag)? Or is it possible only with third-party libraries, like jQuery?
Thank you!