diff --git a/index.js b/index.js
index 62770b4..e3abf97 100644
--- a/index.js
+++ b/index.js
@@ -113,11 +113,13 @@ module.exports = function (html, styles, options) {
});
// build js block to load blocking stylesheets and insert it right before
+ // exposes async stylesheets as global asyncss array which could be used with onloadCSS
noscript.before('\n');
}
diff --git a/test/expected/cartoon-absolute-expected.html b/test/expected/cartoon-absolute-expected.html
index a30e673..62564df 100644
--- a/test/expected/cartoon-absolute-expected.html
+++ b/test/expected/cartoon-absolute-expected.html
@@ -301,7 +301,8 @@ ul{
}
diff --git a/test/expected/cartoon-expected.html b/test/expected/cartoon-expected.html
index 06851bc..6789526 100644
--- a/test/expected/cartoon-expected.html
+++ b/test/expected/cartoon-expected.html
@@ -301,7 +301,8 @@ ul{
}
diff --git a/test/expected/external-expected.html b/test/expected/external-expected.html
index 71488de..2c0d714 100644
--- a/test/expected/external-expected.html
+++ b/test/expected/external-expected.html
@@ -335,14 +335,15 @@
float: right !important;
}
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/test/expected/external-extract-expected.html b/test/expected/external-extract-expected.html
index de9cf15..963df5a 100644
--- a/test/expected/external-extract-expected.html
+++ b/test/expected/external-extract-expected.html
@@ -301,7 +301,8 @@
}
diff --git a/test/expected/external-ignore-expected.html b/test/expected/external-ignore-expected.html
index a6caa53..0296cbf 100644
--- a/test/expected/external-ignore-expected.html
+++ b/test/expected/external-ignore-expected.html
@@ -336,7 +336,8 @@
}
diff --git a/test/expected/index-before.html b/test/expected/index-before.html
index 3f1d933..0568b2e 100644
--- a/test/expected/index-before.html
+++ b/test/expected/index-before.html
@@ -7,7 +7,8 @@
critical css test
diff --git a/test/expected/index-inlined-absolute.html b/test/expected/index-inlined-absolute.html
index 4b8d168..192a681 100644
--- a/test/expected/index-inlined-absolute.html
+++ b/test/expected/index-inlined-absolute.html
@@ -301,7 +301,8 @@ ul{
}
diff --git a/test/expected/index-inlined-async-final.html b/test/expected/index-inlined-async-final.html
index cbea358..b3da0ae 100644
--- a/test/expected/index-inlined-async-final.html
+++ b/test/expected/index-inlined-async-final.html
@@ -301,9 +301,10 @@ ul{
}
-
+
diff --git a/test/expected/index-inlined-async-minified-final.html b/test/expected/index-inlined-async-minified-final.html
index 86fc263..ee1df0d 100644
--- a/test/expected/index-inlined-async-minified-final.html
+++ b/test/expected/index-inlined-async-minified-final.html
@@ -12,7 +12,8 @@
.header,.jumbotron{border-bottom:1px solid #e5e5e5}.btn,.jumbotron{text-align:center}body{padding-top:20px;padding-bottom:20px}.header{padding-left:15px;padding-right:15px}.header h3{margin-top:0;margin-bottom:0;line-height:40px;padding-bottom:19px}.jumbotron .btn{font-size:21px;padding:14px 24px}@media screen and (min-width:768px){.container{max-width:730px}.header{padding-left:0;padding-right:0;margin-bottom:30px}.jumbotron{border-bottom:0}}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:62.5%;-webkit-tap-highlight-color:transparent}body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}h1{margin:.67em 0;font-size:36px}@media print{*{color:#000!important;text-shadow:none!important;background:0 0!important;box-shadow:none!important}a{text-decoration:underline}a[href]:after{content:" (" attr(href)")"}a[href^="#"]:after{content:""}h3,p{orphans:3;widows:3}h3{page-break-after:avoid}}*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}a{background:0 0;color:#428bca;text-decoration:none}h1,h3{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;margin-top:20px;margin-bottom:10px}h3{font-size:24px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}.text-muted{color:#999}ul{margin-top:0;margin-bottom:10px}.btn,.nav{margin-bottom:0}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.lead{font-size:21px}.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.btn{display:inline-block;padding:6px 12px;font-size:14px;font-weight:400;line-height:1.42857143;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.nav>li,.nav>li>a{position:relative;display:block}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.nav{padding-left:0;list-style:none}.nav>li>a{padding:10px 15px}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a{color:#fff;background-color:#428bca}.jumbotron,.jumbotron h1{color:inherit}.jumbotron{padding:30px;margin-bottom:30px;background-color:#eee}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.container .jumbotron{border-radius:6px}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-right:60px;padding-left:60px}.jumbotron h1{font-size:63px}}.container:after,.container:before,.nav:after,.nav:before{display:table;content:" "}.container:after,.nav:after{clear:both}.pull-right{float:right!important}
diff --git a/test/expected/index-noscript-inlined-minified-final.html b/test/expected/index-noscript-inlined-minified-final.html
index 4b574e2..ea8617b 100644
--- a/test/expected/index-noscript-inlined-minified-final.html
+++ b/test/expected/index-noscript-inlined-minified-final.html
@@ -12,7 +12,8 @@
.header,.jumbotron{border-bottom:1px solid #e5e5e5}.btn,.jumbotron{text-align:center}body{padding-top:20px;padding-bottom:20px}.header{padding-left:15px;padding-right:15px}.header h3{margin-top:0;margin-bottom:0;line-height:40px;padding-bottom:19px}.jumbotron .btn{font-size:21px;padding:14px 24px}@media screen and (min-width:768px){.container{max-width:730px}.header{padding-left:0;padding-right:0;margin-bottom:30px}.jumbotron{border-bottom:0}}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:62.5%;-webkit-tap-highlight-color:transparent}body{margin:0;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}h1{margin:.67em 0;font-size:36px}@media print{*{color:#000!important;text-shadow:none!important;background:0 0!important;box-shadow:none!important}a{text-decoration:underline}a[href]:after{content:" (" attr(href)")"}a[href^="#"]:after{content:""}h3,p{orphans:3;widows:3}h3{page-break-after:avoid}}*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}a{background:0 0;color:#428bca;text-decoration:none}h1,h3{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;margin-top:20px;margin-bottom:10px}h3{font-size:24px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}.text-muted{color:#999}ul{margin-top:0;margin-bottom:10px}.btn,.nav{margin-bottom:0}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.lead{font-size:21px}.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.btn{display:inline-block;padding:6px 12px;font-size:14px;font-weight:400;line-height:1.42857143;white-space:nowrap;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.nav>li,.nav>li>a{position:relative;display:block}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.nav{padding-left:0;list-style:none}.nav>li>a{padding:10px 15px}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a{color:#fff;background-color:#428bca}.jumbotron,.jumbotron h1{color:inherit}.jumbotron{padding:30px;margin-bottom:30px;background-color:#eee}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.container .jumbotron{border-radius:6px}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-right:60px;padding-left:60px}.jumbotron h1{font-size:63px}}.container:after,.container:before,.nav:after,.nav:before{display:table;content:" "}.container:after,.nav:after{clear:both}.pull-right{float:right!important}