A <link rel="preload"> Polyfill. Call the onload event, also in unsupported Browser.
npm install js.polyfill.preload.onload[![tests][tests]][tests-url]
[![coverage][coverage]][coverage-url]
[![maintainability][maintainability]][maintainability-url]
A Polyfill. Call the onload event, also in unsupported Browser.
``console`
npm install js.polyfill.preload.onload
`javascript
import Preload from 'js.polyfill.preload.onload';
const preload = new Preload();
preload.check() || preload.update();
`
Inject the Polyfill into
within a Note: The Polyfill should be injected inline to save the extra request.
Example
Inline Critical CSS and injected main Stylesheet. With noscript fallback and Polyfill to support browser who don't understand rel=preload.Note: This Example is also used within the dev environment. Run
npm start from the repository main directory and open http://localhost:8090 in your Browser.$3
`html
`$3
`html
href="css/style.css"
rel="preload"
as="style"
onload='this.rel="stylesheet"'
type="text/css">
``cssbody {
color: #abcdef;
background-color: #012345;
transition: all 4s ease-in;
outline: 1em solid #abcdef;
}
...
`Note: This style is also injected as fallback within the