From d5a6d6fb04dcb56621b288fc9ed38c99c9de8f23 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Mon, 20 Aug 2018 09:03:18 +0800 Subject: [PATCH] polyfill.io: Fix conditional loading snippet --- polyfill.io.md | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/polyfill.io.md b/polyfill.io.md index 41081ee6e..685bc3e47 100644 --- a/polyfill.io.md +++ b/polyfill.io.md @@ -14,26 +14,22 @@ intro: | ```html ``` + {: .-wrap} This is the default script for Polyfill.io. ### References -- [API example](https://polyfill.io/v2/docs/api) _(polyfill.io)_ -- [List of features](https://polyfill.io/v2/docs/features) _(polyfill.io)_ +* [API example](https://polyfill.io/v2/docs/api) _(polyfill.io)_ +* [List of features](https://polyfill.io/v2/docs/features) _(polyfill.io)_ ## Optimized ### For modern browsers ```html - + ``` This only includes polyfill.io when necessary, skipping it for modern browsers for faster load times. @@ -41,13 +37,7 @@ This only includes polyfill.io when necessary, skipping it for modern browsers f ### Extra features ```html - + ``` -{: data-line="2,4"} This is the same as the previous, but also adds a polyfill for `window.fetch()`. We add a `window.fetch` check and loads the additional `fetch` feature.