Skip to content

newaeonweb/dependency.js

Repository files navigation

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: feiochc@gmail.com Twitter: @newaeonweb Google Plus: Fernando Monteiro

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published