Skip to content

Commit

Permalink
2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
optimalisatie committed Oct 11, 2020
1 parent 0efc21c commit 161b20c
Show file tree
Hide file tree
Showing 63 changed files with 172 additions and 117 deletions.
21 changes: 21 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,19 @@ module.exports = function(grunt) {
src: 'dist/debug/*.js',
dest: '../httpdocs/iife/node_modules/@style.tools/async/'
},

cdn: {
src: 'dist/*.js',
dest: '../modules/cdn/node_modules/@style.tools/async/'
},
cdn_package: {
src: 'package.json',
dest: '../modules/cdn/node_modules/@style.tools/async/'
},
cdn_debug: {
src: 'dist/debug/*.js',
dest: '../modules/cdn/node_modules/@style.tools/async/'
}
}
});

Expand All @@ -308,5 +321,13 @@ module.exports = function(grunt) {
'copy:iife_debug'
]);


grunt.registerTask('copy_cdn', [
'copy:cdn',
'copy:cdn_package',
'copy:cdn_debug'
]);


grunt.registerTask('default', ['']);
};
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $async([
"timeout": 1000
}
}
]'></script>
]' data-x="/path/to/critical.css"></script>
```

The config can be compressed to save size in the HTML (see [compressor](https://style.tools/async/)).
Expand All @@ -83,6 +83,8 @@ $async is designed as the ultimate CSS and script loader for modern frontend opt
- 100% JSON control.
- Google Closure Compiler (GCC) with _Advanced mode_ script compression (reliable and performant in all browsers).

$async contains many unique innovations such as async `critical.css`, timed download, exec and render and much more.

### Modular
$async is modular and easy to use: select only the features that are needed to achieve the tiniest script size.
- simply stitch pre-optimized GCC modules together for a performant IIFE. You can wrap the modules in [dist/](./dist/) into an IIFE, e.g. `!function(){/* stitched modules */}();`. Follow the module order in [package.json](./package.json).
Expand Down
2 changes: 1 addition & 1 deletion dist/api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/async-core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/attr-config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/cache-api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cache-css.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cache-js.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Fb=function(a,b){var c=a[0],d=a[2];c[20]=a[1];b(d,c)};
Gb=function(a,b){var c=a[0],d=a[2];c[20]=a[1];b(d,c)};
2 changes: 1 addition & 1 deletion dist/cache-update.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Ab=function(a){var b=a[0],c=a[2],d=a[3],e=a[4],k=a[5];a=a[6]||d[4];var f=c[69];f&&zb(d[3],f[70])&&R(Bb,[b,e,k,a,d[1]],function(a,e,d){Hb(b,c,a,e,d)})};
Bb=function(a){var b=a[0],c=a[2],d=a[3],e=a[4],k=a[5];a=a[6]||d[4];var f=R(c[69],70);Ab(d[3],f[70]||3600)&&S(Cb,[b,e,k,a,d[1]],function(a,e,d){Ib(b,c,a,e,d)})};
8 changes: 4 additions & 4 deletions dist/cache.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/capture-css.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Pb=function(a,b){var c=a[0];a=a[1];(a==r(12)||a==r(11)&&(c.getAttribute(r(0))||"").toLowerCase().trim()==r(22))&&b(c.getAttribute(r(4)),4)};
Qb=function(a,b){var c=a[0];a=a[1];(a==r(12)||a==r(11)&&(c.getAttribute(r(0))||"").toLowerCase().trim()==r(22))&&b(c.getAttribute(r(4)),4)};
2 changes: 1 addition & 1 deletion dist/capture-insert.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/capture-js.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Ob=function(a,b){var c=a[0];a[1]==r(27)&&b(c.getAttribute(r(5)),5)};
Pb=function(a,b){var c=a[0];a[1]==r(27)&&b(c.getAttribute(r(5)),5)};
2 changes: 1 addition & 1 deletion dist/capture-observer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/capture.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/css-loader.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/debug/api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 161b20c

Please sign in to comment.