Skip to content

Commit 0d0e065

Browse files
committed
fix: recommend cloudflare vs polyfill.io
1 parent 5863a39 commit 0d0e065

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ This package requires Promise support, therefore you will need to polyfill if yo
454454
This is the solution for you if you're just using `<script>` tags everywhere!
455455

456456
```html
457-
<script src="https://polyfill.io/v3/polyfill.min.js?features=Promise"></script>
457+
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
458458
<script src="https://unpkg.com/cabin"></script>
459459
<script type="text/javascript">
460460
(function() {
@@ -471,10 +471,10 @@ This is the solution for you if you're just using `<script>` tags everywhere!
471471

472472
#### Required Browser Features
473473

474-
We recommend using <https://polyfill.io> (specifically with the bundle mentioned in [VanillaJS](#vanillajs) above):
474+
We recommend using <https://cdnjs.cloudflare.com/polyfill> (specifically with the bundle mentioned in [VanillaJS](#vanillajs) above):
475475

476476
```html
477-
<script src="https://polyfill.io/v3/polyfill.min.js?features=Promise"></script>
477+
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
478478
```
479479

480480
* Promise is not supported in op\_mini all
@@ -510,7 +510,7 @@ We strongly recommend that you implement one of the following code snippets with
510510
##### HTML
511511

512512
```html
513-
<script src="https://polyfill.io/v3/polyfill.min.js?features=Promise"></script>
513+
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
514514
<script src="https://unpkg.com/xhook"></script>
515515
<script src="https://unpkg.com/cabin"></script>
516516
<script src="https://unpkg.com/parse-request"></script>
@@ -549,7 +549,7 @@ We strongly recommend that you implement one of the following code snippets with
549549
> You can do a similar approach with React, EJS, or another templating language.
550550
551551
```pug
552-
script(src='https://polyfill.io/v3/polyfill.min.js?features=Promise')
552+
script(src='https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise')
553553
script(src='https://unpkg.com/xhook')
554554
script(src='https://unpkg.com/cabin')
555555
script(src='https://unpkg.com/parse-request')
@@ -658,7 +658,7 @@ It does require you to have a polyfill if you're using it in the browser (only i
658658
The example below demonstrates using StackTrace with [uncaught][] to catch global errors below.
659659

660660
```html
661-
<script src="https://polyfill.io/v3/polyfill.min.js?features=Promise"></script>
661+
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
662662
<script src="https://unpkg.com/stackframe"></script>
663663
<script src="https://unpkg.com/stacktrace-js"></script>
664664
<script src="https://unpkg.com/uncaught"></script>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<body>
2121
<div id="app">
2222
</div>
23-
<script src="https://polyfill.io/v3/polyfill.min.js?features=Promise"></script>
23+
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
2424
<script src="https://unpkg.com/cabin"></script>
2525
<script src="https://unpkg.com/xhook"></script>
2626
<script src="https://unpkg.com/parse-request"></script>

0 commit comments

Comments
 (0)