Script Loader Based On Externally Defined Dependencies Pattern
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
LICENSE
README.md
eddloader.js
index.html

README.md

Eddloader

A simple synchronous script loader based on pattern "Externally Defined Dependencies".

Usage

Add to the html file the script tag with appropriate data-attributes:

<script type="text/javascript" src="eddloader.js" data-edd-path="" data-edd-deps="deps.json"></script>

The json file with dependencies must have property files with list of dependencies:

{
    "files": {
        "file1.js": ["file2.js", "file3.js"],
        "file2.js": [],
        "file3.js": ["file4.js"],
        "file4.js": []
    }
}

Licence

MIT