Skip to content

Releases: pagespeed-pro/async

2.0.4

03 Dec 12:16
Compare
Choose a tag to compare
  • Bugfixes
  • Changed: $async.dependencies changed to direct match instead of partial match.

2.0.2

21 Nov 17:36
Compare
Choose a tag to compare
  • Bugfix: $async.dependencies not working.

2.0.1

11 Oct 20:02
Compare
Choose a tag to compare
  • bugfix: compressed javascript object not loaded {"5":"/js/script.js"}
  • added: async critical.css via data-x attribute.
  • changed: default CSS source methods changed to xhr, cors (cssText as preferred method was removed)
  • changed: stylesheet/script insert target now starts after the async-iife.js script element and after the optional async critical.css element.

Async critical.css

A new innovation now makes it possible to load critical CSS asynchronously using the data-x attribute.

<script async src="js/async-iife.js" data-x="/path/to/critical.css" data-c='[["css/sheet1.css","js/script.js",{"4":"https://cdn.com/css/sheet2.css"},{"5":"https://cdn.com/js/script2.js","16":"x","48":54},{"5":"js/script3.js","15":"x"}],{"49":52,"60":{"2":53,"57":1000}}]'></script>

2.0.0

26 Sep 19:34
Compare
Choose a tag to compare
  • 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>

1.1.3

16 Jul 16:33
Compare
Choose a tag to compare
  • added: faster domReady timing method through requestAnimationFrame. This timing method can be used instead of physically adding scripts in the bottom of a HTML page.
$async({
  "href": "/sheet.css",
  "load_timing": {
    "type": "requestAnimationFrame",
    "frame": -1 // domReady
  }
});

It is faster than the event DOMContentLoaded.

image

1.1.2

02 Jul 19:39
Compare
Choose a tag to compare
  • Updated description.

1.1.1

03 Jun 18:51
Compare
Choose a tag to compare

Updated description.

1.1.0

01 Jun 11:26
Compare
Choose a tag to compare
description

1.0.11

01 Jun 08:50
Compare
Choose a tag to compare

Bugfix: error handling of localStorage fails when using API module without debug mode.

1.0.10

24 Dec 18:20
Compare
Choose a tag to compare
1.0.10