async-components
Async components allows splitting the web into independent components and easily integrate them, asynchronously.
Demo
http://msn0.github.io/async-components
Installation
npm i async-components# or bower i async-components
Usage
Include async-components straight after the <body>
tag:
Define components:
Once component is loaded, the corresponding event is emmited. Let's say listing
depends on header
. Then listing
should listen for header-loaded
event, e.g.
document;
License
MIT