Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 599 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 599 Bytes

Coupler

Async dependency injector! Wrote for quick injections!

Why

The real concept behind is just a simple dependency injection which will cache, re-inject and async lazy load the desired scripts based upon the dependency mentioned at first.

How to

Just add in your html page:

<script type="text/javascript" src="/js/coupler.min.js"></script>

And you're ready to use it now.

__c('jQuery', ['user-module','datepicker.min','jquery-tabs'], function() {
    // jQuery is injected and after it, array[] of 3 scripts is also and you';re ready to go.
});