You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These APIs can be used to make apps faster by pre-loading resources such as scripts, stylesheets, and fonts as soon as you know you need them, for example before navigating to another page where the resources will be used.
22
+
一旦你确定会用到某些资源,这些 API 可用于预加载脚本、样式表和字体等资源,从而让应用更快。例如,在跳转到将使用这些资源的另一个页面之前加载。
23
23
24
-
[React-based frameworks](/learn/start-a-new-react-project)frequently handle resource loading for you, so you might not have to call these APIs yourself. Consult your framework's documentation for details.
*[`prefetchDNS`](/reference/react-dom/prefetchDNS)lets you prefetch the IP address of a DNS domain name that you expect to connect to.
27
-
*[`preconnect`](/reference/react-dom/preconnect)lets you connect to a server you expect to request resources from, even if you don't know what resources you'll need yet.
28
-
*[`preload`](/reference/react-dom/preload)lets you fetch a stylesheet, font, image, or external script that you expect to use.
29
-
*[`preloadModule`](/reference/react-dom/preloadModule)lets you fetch an ESM module that you expect to use.
30
-
*[`preinit`](/reference/react-dom/preinit)lets you fetch and evaluate an external script or fetch and insert a stylesheet.
31
-
*[`preinitModule`](/reference/react-dom/preinitModule)lets you fetch and evaluate an ESM module.
26
+
*[`prefetchDNS`](/reference/react-dom/prefetchDNS)让你预取出希望连接的 DNS 域名的 IP 地址。
*[`renderToNodeStream`](https://18.react.dev/reference/react-dom/server/renderToNodeStream): 使用 [`react-dom/server`](/reference/react-dom/server) API 来替代。
53
-
*[`renderToStaticNodeStream`](https://18.react.dev/reference/react-dom/server/renderToStaticNodeStream): 使用 [`react-dom/server`](/reference/react-dom/server) API 来替代。
*[`renderToNodeStream`](https://18.react.dev/reference/react-dom/server/renderToNodeStream):使用 [`react-dom/server`](/reference/react-dom/server) API 来替代。
53
+
*[`renderToStaticNodeStream`](https://18.react.dev/reference/react-dom/server/renderToStaticNodeStream):使用 [`react-dom/server`](/reference/react-dom/server) API 来替代。
0 commit comments