You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -22,8 +24,25 @@ See [deployment](#deployment) for notes on how to deploy the project on a live s
22
24
Make sure you know what features your script is reliant on and polyfill those not natively supported on the browsers you support (you can check https://caniuse.com/).
1. Copy the contents of [dynamicpolyfill.js](https://github.com/willstocks-tech/dynamically-polyfill-features-for-a-script/blob/master/dynamicpolyfill.js)
28
47
1. Paste it into your existing JS file(s)
29
48
1. Add a new line after it and call `dynamicPolyfill();`_Note: Case-sensitive_
"description": "A small, lightweight script to check for native browser feature support - only polyfill when necessary (using the polyfill.io service), no wasted requests on browsers that have native support!",
5
+
"main": "dynamicpolyfill.js",
6
+
"scripts": {
7
+
"test": "echo \"Error: no test specified\" && exit 1"
0 commit comments