Skip to content

Hunter-Dolan/Teleport.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <sam@hocevar.net> 

 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);

About

The missing import() function for JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published