toast-loader
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "toast-loader", | ||
"description": "A modern JS/CSS asset loader", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"author": "Aurélien Delogu <dev@dreamysource.fr> (http://dreamysource.fr)", | ||
@@ -23,3 +23,3 @@ "repository": { | ||
}, | ||
"homepage": "http://dreamysource.io/project/toast", | ||
"homepage": "https://github.com/pyrsmk/toast", | ||
"main": "dist/toast.js", | ||
@@ -26,0 +26,0 @@ "files": [ |
# Toast v3 | ||
Toast is a promise-based asset loader for JS and CSS files. It aims to optimize web site performance by loading and deferring the needed assets only. | ||
Toast is a promise-based asset loader for JS and CSS files. It aims to optimize web site performance by loading and deferring the needed assets. | ||
Since it have a small footprint Toast can be loaded as soon as possible on the `HEAD` tag. | ||
As a side note: Toast is packaged as an UMD module. | ||
## Install | ||
## Set up | ||
@@ -15,2 +13,10 @@ ```sh | ||
Since it have a small footprint, Toast can be loaded as soon as possible in the `HEAD` tag: | ||
```html | ||
<head> | ||
<script src="node_modules/toast-loader/dist/toast.min.js"></script> | ||
</head> | ||
``` | ||
## The API | ||
@@ -56,2 +62,4 @@ | ||
Toast is using built-in promises. If you need to support IE9-11, you must add the [promise-polyfill](https://github.com/taylorhakes/promise-polyfill) library before loading Toast. Here's the compatibility table for the [Promise feature](https://www.caniuse.com/#feat=promises). | ||
IE9-IE11 and Edge never trigger `error` event on CSS loading if something went wrong. Keep this in mind when you're using `catch` promise block with Toast. | ||
@@ -58,0 +66,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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
9387
0
129