Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update polyfill link #429

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,10 @@ One or many URLs to be prerendered.
`quicklink`:

- Includes a very small fallback for [requestIdleCallback](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback)
- Requires `IntersectionObserver` to be supported (see [Can I Use](https://caniuse.com/intersectionobserver)). We recommend conditionally polyfilling this feature with a service like Polyfill.io:
- Requires `IntersectionObserver` to be supported (see [Can I Use](https://caniuse.com/intersectionobserver)). We recommend conditionally polyfilling this feature with a service like polyfill-fastly.io:

```html
<script src="https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver"></script>
<script src="https://polyfill-fastly.io/v3/polyfill.min.js?features=IntersectionObserver"></script>
```

Alternatively, see the [Intersection Observer polyfill](https://github.com/GoogleChromeLabs/intersection-observer).
Expand Down
4 changes: 2 additions & 2 deletions site/src/api.njk
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ One or many URLs to be prerendered.
`quicklink`:

- Includes a very small fallback for [requestIdleCallback](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback)
- Requires `IntersectionObserver` to be supported (see [Can I Use](https://caniuse.com/intersectionobserver)). We recommend conditionally polyfilling this feature with a service like Polyfill.io:
- Requires `IntersectionObserver` to be supported (see [Can I Use](https://caniuse.com/intersectionobserver)). We recommend conditionally polyfilling this feature with a service like polyfill-fastly.io:

{% endmarkdownConvert %}
{% highlight "html" %}
<script src="https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver"></script>
<script src="https://polyfill-fastly.io/v3/polyfill.min.js?features=IntersectionObserver"></script>
{% endhighlight %}
{% markdownConvert %}
Alternatively, see the [Intersection Observer polyfill](https://github.com/GoogleChromeLabs/intersection-observer).
Expand Down
4 changes: 2 additions & 2 deletions translations/zh-cn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ quicklink();
`quicklink`:

- [requestIdleCallback](https://developer.mozilla.org/zh-CN/docs/Web/API/Window/requestIdleCallback) 的一个非常小的回退。
- 需要支持 `IntersectionObserver` (请参阅 [CanIUse](https://caniuse.com/#feat=intersectionobserver))。我们推荐使用 Polyfill.io 等服务选择性地实现此功能:
- 需要支持 `IntersectionObserver` (请参阅 [CanIUse](https://caniuse.com/#feat=intersectionobserver))。我们推荐使用 polyfill-fastly.io 等服务选择性地实现此功能:

```html
<script src="https://polyfill.io/v2/polyfill.min.js?features=IntersectionObserver"></script>
<script src="https://polyfill-fastly.io/v3/polyfill.min.js?features=IntersectionObserver"></script>
```

或者,请参见 [Intersection Observer polyfill](https://github.com/GoogleChromeLabs/intersection-observer)。
Expand Down