preloadfill

A polyfill for the preload link type [rel="preload"]

CC0-1.0 License

Stars
17

Preload Fill

Preload Fill is a polyfill for the preload link type.

Visit a CodePen Example of Preload demonstrating asynchronously loaded CSS.

THIS PROJECT IS IN A DRAFT STAGE

<link href="style.non-critical.css" rel="preload" as="style">

Usage

Install Preload Fill to your project.

npm install jonathantneal/preloadfill --save-dev

Import Preload Fill within your script.

import 'preloadfill';

Additional Reading

Smashing Magazine: Preload: What Is It Good For?


Preload Fill is 558 bytes after being transpiled, minified, and gzipped.