Polyfills on demand 💊

Related tags

Video/Audio lazyfill
Overview

💊 lazyfill (beta)

Polyfill Service - the lazy way

Polyfills are only loaded when they are needed.
Initial 2Kb to polyfill a lot of Stuff.

Let's assume that your browser does not support the function "String.prototype.at".

> ['a','b','c'].at(-1); // accessing  [].at immediately loads the polyfill
> 'c'

Ussage

Add this script on the top of your page:

<script src="https://cdn.jsdelivr.net/gh/nuxodin/[email protected]/mod.min.js"></script>

done!

How it works

To every polyfillable property, the scripts adds a getter which synchronously loads the corresponding polyfill.
Of course, we all know that blocking xhr-requests is not nice.
Therefore, the url to the script that should be added to the page is given in the console.

Help

Any help is greatly appreciated.

Thanks / Resources

https://github.com/behnammodi/polyfill

https://polyfill.io/v3/

https://ungap.github.io/

https://github.com/Sylvain59650/all-polyfills

https://vanillajstoolkit.com/polyfills/

You might also like...
Releases(v1.7.6)
Owner
Tobias Buschor
Tobias Buschor
A tool helps to generate ttf, woff, woff2 and css file at the same time. Supports splitting font files on demand

Font Pack A tool helps to generate ttf, woff, woff2 and css file at the same time. Supports splitting font files on demand. 一个可以根据常用字体格式文件,直接生成 ttf、wo

GyDi 2 Apr 18, 2022
on-demand module bundler thingy

lurantis An HTTP server that bundles and serves packages from NPM; "bundler as a service." Usage Run the server: npx lurantis --port 8080 Then, send G

Lily Scott 6 Feb 21, 2022
An on-demand peer tutoring platform by students, for students.

OURFinals An on-demand peer tutoring platform by students, for students. Database The prisma/ folder contains: migrations/: Past database migrations (

Aditya Banerjee 3 Jan 6, 2022
This project is a Web application based on an external API. The API provides data about music (including artists, albums, etc) that users can access on-demand. This project was built with ES6, HTML and CSS and it is a SPA.

Capstone M2: Music App This project is a Web application based on the music API Napster built with ES6, HTML and CSS and it is a SPA. This API provide

Karla Delgado 12 Aug 29, 2022
Motionia is a lightweight simplified on demand animation library

The Ultimate & smart JS animation library! Simple fast , flexible & easy to integrate. No need to write page long CSS Keyframes that consumes a lot of

Abhi 324 Dec 30, 2022
On-demand runtime webpack compilations over HTTP.

webpack-http-server On-demand runtime webpack compilations over HTTP. Overview This package is, effectively, an Express server that exposes webpack co

Artem Zakharchenko 4 Oct 20, 2022