toast-loader
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "toast-loader", | ||
"description": "A modern JS/CSS asset loader", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"author": "Aurélien Delogu <dev@dreamysource.fr> (http://dreamysource.fr)", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -13,3 +13,3 @@ # Toast v3 | ||
Since it have a small footprint, Toast can be loaded as soon as possible in the `HEAD` tag: | ||
Since it have a small footprint (0.8kb), Toast can be loaded as soon as possible in the `HEAD` tag: | ||
@@ -22,2 +22,4 @@ ```html | ||
Or even better, you can inline it in your HTML page to improve your loading performance. | ||
## The API | ||
@@ -50,3 +52,3 @@ | ||
```js | ||
toast.all([ | ||
await toast.all([ | ||
'assets/css/styles1.css', | ||
@@ -57,5 +59,4 @@ 'assets/css/styles2.css', | ||
'assets/js/script3.js', | ||
]).then(() => { | ||
console.log('Everything has been loaded, yay!') | ||
}) | ||
]) | ||
console.log('Everything has been loaded, yay!') | ||
``` | ||
@@ -62,0 +63,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
130
8964
6
57