Skip to content

Commit

Permalink
fix: recommend cloudflare vs polyfill.io
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jun 25, 2024
1 parent 5863a39 commit 0d0e065
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ This package requires Promise support, therefore you will need to polyfill if yo
This is the solution for you if you're just using `<script>` tags everywhere!
```html
<script src="https://polyfill.io/v3/polyfill.min.js?features=Promise"></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
<script src="https://unpkg.com/cabin"></script>
<script type="text/javascript">
(function() {
Expand All @@ -471,10 +471,10 @@ This is the solution for you if you're just using `<script>` tags everywhere!
#### Required Browser Features
We recommend using <https://polyfill.io> (specifically with the bundle mentioned in [VanillaJS](#vanillajs) above):
We recommend using <https://cdnjs.cloudflare.com/polyfill> (specifically with the bundle mentioned in [VanillaJS](#vanillajs) above):
```html
<script src="https://polyfill.io/v3/polyfill.min.js?features=Promise"></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
```
* Promise is not supported in op\_mini all
Expand Down Expand Up @@ -510,7 +510,7 @@ We strongly recommend that you implement one of the following code snippets with
##### HTML
```html
<script src="https://polyfill.io/v3/polyfill.min.js?features=Promise"></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
<script src="https://unpkg.com/xhook"></script>
<script src="https://unpkg.com/cabin"></script>
<script src="https://unpkg.com/parse-request"></script>
Expand Down Expand Up @@ -549,7 +549,7 @@ We strongly recommend that you implement one of the following code snippets with
> You can do a similar approach with React, EJS, or another templating language.
```pug
script(src='https://polyfill.io/v3/polyfill.min.js?features=Promise')
script(src='https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise')
script(src='https://unpkg.com/xhook')
script(src='https://unpkg.com/cabin')
script(src='https://unpkg.com/parse-request')
Expand Down Expand Up @@ -658,7 +658,7 @@ It does require you to have a polyfill if you're using it in the browser (only i
The example below demonstrates using StackTrace with [uncaught][] to catch global errors below.
```html
<script src="https://polyfill.io/v3/polyfill.min.js?features=Promise"></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
<script src="https://unpkg.com/stackframe"></script>
<script src="https://unpkg.com/stacktrace-js"></script>
<script src="https://unpkg.com/uncaught"></script>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<body>
<div id="app">
</div>
<script src="https://polyfill.io/v3/polyfill.min.js?features=Promise"></script>
<script src="https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=Promise"></script>
<script src="https://unpkg.com/cabin"></script>
<script src="https://unpkg.com/xhook"></script>
<script src="https://unpkg.com/parse-request"></script>
Expand Down

0 comments on commit 0d0e065

Please sign in to comment.