Skip to content

2.0.0

Compare
Choose a tag to compare
@optimalisatie optimalisatie released this 26 Sep 19:34
· 2 commits to master since this release
  • 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>