2.0.0
- CSS and script loader merged.
$async
can now be used for both scripts and stylesheets. - improved inline script loading:
{"inline": "inline_code();"}
- removed:
$async.js
<!-- config via an HTML attribute -->
<script async src="js/async-iife.js" data-c='[
[
"css/sheet1.css",
"js/script1.js",
{
"src": "script2.js",
"load_timing": {
"type": "requestAnimationFrame",
"frame": -1 // faster domReady
},
"exec_timing": "requestIdleCallback"
},
{
"href": "sheet2.css"
}
]
]'></script>