Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

toast-loader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toast-loader - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc