Skip to content
Synchronous browser resource loader for loading scripts inline. Not AMD but SMD (Synchronous Module Definition)
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md
bower.json
index.md
require-sync.js

README.md

Require-Sync

A synchronous module loader based on the AMD pattern. This means you can load stuff inline - if you must - e.g.

<script src="require-sync.js" data-main="demo-module.js"></script>
<script>
    // In AMD you would have had to wrap this in a `require` handler
    // But in SMD it is available immediatly after the script is imported
    window.demo-module-function('Loaded');
</script>

Install

bower install require-sync
Something went wrong with that request. Please try again.