Example
teleport(['script.js', 'http://code.jquery.com/jquery-latest.min.js'], function() {
alert('scripts added.');
});
Or for a simple include (and for all you php heads out there)
include('js/script.js');
Why are you asking this question, I’m a PHP guy… it sooths the sole to use the good old include() function. It’s much faster to write.
WTFPL (http://sam.zoy.org/wtfpl/)
Listen guys… it’s a line of JS… do what ever the heck you want with it!
But so nobody sues me…
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <[email protected]>
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
Okay maybe I’m just imagining the above line… but the guy who did write all of this is
Hunter Dolan (@hunterhdolan | Website)
and, contributions by
and
Thomas Rambaud (@thomasethajar | Website);