Skip to content

Commit

Permalink
docs: update prefetching link (web-infra-dev#8449)
Browse files Browse the repository at this point in the history
doc: update Prefetching link
  • Loading branch information
xiaohp authored Nov 15, 2024
1 parent 425deee commit 3c74282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/zh/api/runtime-api/module-methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,15 @@ import(
- `number`: 预取优先级
- `boolean`: `false` 表示不预取, `true` 表示预取并且优先级是 `0`

告诉浏览器将来可能需要该资源来进行某些导航跳转,详情请查看[预取/预载模块](/guide/optimization/code-splitting#预取预载模块)
告诉浏览器将来可能需要该资源来进行某些导航跳转,详情请查看[预取/预载模块](/guide/optimization/code-splitting#prefetchingpreloading-模块)

##### webpackPreload

- **类型:**
- `number`: 预载优先级
- `boolean`: `false` 表示不预载, `true` 表示预载并且优先级是 `0`

告诉浏览器在当前导航期间可能需要该资源,详情请查看[预取/预载模块](/guide/optimization/code-splitting#预取预载模块)
告诉浏览器在当前导航期间可能需要该资源,详情请查看[预取/预载模块](/guide/optimization/code-splitting#prefetchingpreloading-模块)

##### webpackChunkName

Expand Down

0 comments on commit 3c74282

Please sign in to comment.