/preloadfill

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

Primary LanguageJavaScriptCreative Commons Zero v1.0 UniversalCC0-1.0

Preload Fill Preload Fill

NPM Version Build Status Licensing Changelog

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.