J Wynia has written a nice little include function for JavaScript basically embedding the included-script nicely into the head element of the displaying HTML page. So all you have to do is puts something like js_include('path/to/file.js');
into one of your already “installed” JavaScript files. Definitely much nicer than dothing something
ugly like document.write('<script type="text/javascript" src="http://domain.com/j/newlib.js"></script>');
.
Do you want to give me feedback about this article in private? Please send it to comments@zerokspot.com.
Alternatively, this website also supports Webmentions. If you write a post on a blog that supports this technique, I should get notified about your link π