Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Remove polyfill.io from the docs #2141

Open
wants to merge 1 commit into
base: master
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 en/api/configuration-router.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,15 @@ Provide custom query string parse / stringify functions. Overrides the default.
Configure `<nuxt-link>` to prefetch the *code-splitted* page when detected within the viewport.
Requires [IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) to be supported (see [CanIUse](https://caniuse.com/#feat=intersectionobserver)).

We recommend conditionally polyfilling this feature with a service like [Polyfill.io](https://polyfill.io):
We recommend conditionally polyfilling this feature with a service like [Polyfill](https://cdnjs.cloudflare.com/polyfill/):

`nuxt.config.js`

```js
export default {
head: {
script: [
{ src: 'https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver', body: true }
{ src: 'https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=IntersectionObserver', body: true }
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions fr/api/configuration-router.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,15 @@ Configurez `<nuxt-link>` pour pré-charger la page *divisée par code* lorsqu'el
Nécessite [IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API) pour être
pris en charge (voir [CanIUse](https://caniuse.com/#feat=intersectionobserver)) .

Nous vous recommandons de polyfiller conditionnellement cette fonctionnalité avec un service comme [Polyfill.io](https://polyfill.io):
Nous vous recommandons de polyfiller conditionnellement cette fonctionnalité avec un service comme [Polyfill](https://cdnjs.cloudflare.com/polyfill):

`nuxt.config.js`

```js
export default {
head: {
script: [
{ src: 'https://polyfill.io/v2/polyfill.min.js?features=IntersectionObserver', body: true }
{ src: 'https://cdnjs.cloudflare.com/polyfill/v2/polyfill.min.js?features=IntersectionObserver', body: true }
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions ja/api/configuration-router.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,15 @@ export default {
viewport(ブラウザの表示領域)内にリンクが表示されたとき *コード分割された* ページを先読みする `<nuxt-link>` の設定をします。
[IntersectionObserver](https://developer.mozilla.org/ja/docs/Web/API/Intersection_Observer_API) がサポートされている必要があります ([CanIUse](https://caniuse.com/#feat=intersectionobserver)を御覧ください)。

この機能を [Polyfill.io](https://polyfill.io) のようなサービスで条件付きで埋め込むことをお勧めします:
この機能を [Polyfill](https://cdnjs.cloudflare.com/polyfill) のようなサービスで条件付きで埋め込むことをお勧めします:

`nuxt.config.js`

```js
export default {
head: {
script: [
{ src: 'https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver', body: true }
{ src: 'https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=IntersectionObserver', body: true }
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions zh/api/configuration-router.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,15 @@ module.exports = {

在视图中检测到时,配置`<nuxt-link>`用来预获取*代码分割*页面。需要支持[IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)(参阅 [CanIUse](https://caniuse.com/#feat=intersectionobserver))。

我们建议使用[Polyfill.io](https://polyfill.io)等服务有条件地填充此功能:
我们建议使用[Polyfill](https://cdnjs.cloudflare.com/polyfill)等服务有条件地填充此功能:

`nuxt.config.js`

```js
export default {
head: {
script: [
{ src: 'https://polyfill.io/v2/polyfill.min.js?features=IntersectionObserver', body: true }
{ src: 'https://cdnjs.cloudflare.com/polyfill/v2/polyfill.min.js?features=IntersectionObserver', body: true }
]
}
}
Expand Down