Skip to content

Latest commit

 

History

History
62 lines (34 loc) · 1.54 KB

ReadMe.textile

File metadata and controls

62 lines (34 loc) · 1.54 KB

Teleport.js

The missing import() function for JavaScript

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?

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.

License

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. 

Who can I thank for all this?

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

@visualidiot

and

Thomas Rambaud (@thomasethajar | Website);