I only ever loaded into the JS library in the header of an html document like this:
<head>
<script src="somelink.js" />
</head>
My question is: can I load this script from a function, and if so, what will it look like?
function() {
src="somelink.js"
return somemethod.bla;
}
Will this work? Presumably not.
I have reasons for this, but this time they will not be discussed.
Is it possible to load functions into the library from within, and if so, how will it look?
source
share