Releases: pagespeed-pro/async
Releases · pagespeed-pro/async
2.0.4
2.0.2
- Bugfix:
$async.dependencies
not working.
2.0.1
- bugfix: compressed javascript object not loaded
{"5":"/js/script.js"}
- added: async
critical.css
viadata-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
- 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
- added: faster
domReady
timing method throughrequestAnimationFrame
. 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
.
1.1.2
- Updated description.
1.1.1
Updated description.
1.1.0
description
1.0.11
Bugfix: error handling of localStorage fails when using API module without debug mode.
1.0.10
1.0.10