Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/newaeonweb/dependency.js

Small lib to load external files: CSS and JavaScript async & sync.
https://github.com/newaeonweb/dependency.js

Last synced: about 2 months ago
JSON representation

Small lib to load external files: CSS and JavaScript async & sync.

Awesome Lists containing this project

README

        

Dependecy.js

Version: 2013.03.01

=======================================================================

Small lib to load JavaScript files async and sync, very lightweight and easy to use. Also works for CSS files.

-----------------------------------------------------------------------

Depend


  • jQuery 1.9 (But works fine with all versions)

------------------------------------------------------------------------

How to use :



<script src="jQuery-latest"></script>
<script src="dependency.min.js"></script>



$(window).load(function(){
$('head').dependency({
loadDependency: [
{urlPath:"http://localhost:28289/js/date.js", scriptType:"text/javascript", async: true},
{urlPath:"http://localhost:28289/js/daterangepicker.js", scriptType:"text/javascript"},
{urlPath:"http://localhost:28289/css/style.css", scriptType:"text/css",}
]
});
});


-----------------------------------------------------------------------

More infos:

Developer: [email protected]
Twitter: @newaeonweb
Google Plus: Fernando Monteiro