Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/newaeonweb/dependency.js
- Owner: newaeonweb
- Created: 2013-03-25T00:56:59.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-25T02:52:15.000Z (almost 12 years ago)
- Last Synced: 2023-04-05T06:06:15.628Z (over 1 year ago)
- Size: 137 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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