-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Enable optimized loading strategy #26021
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
janicklas-ralph
requested review from
divmain,
ijjk,
lfades,
shuding and
timneutkens
as code owners
June 11, 2021 20:30
This comment has been minimized.
This comment has been minimized.
Failing test suitesCommit: 37cc737 test/integration/relay-analytics/test/index.test.js
Expand output● Analytics relayer › Relays the data to user code
|
Stats from current PRDefault Server Mode (Decrease detected ✓)General Overall increase
|
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
buildDuration | 10.9s | 11s | |
buildDurationCached | 2.6s | 2.7s | |
nodeModulesSize | 46.5 MB | 46.5 MB |
Page Load Tests Overall decrease ⚠️
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.235 | 2.142 | -0.09 |
/ avg req/sec | 1118.7 | 1167.01 | +48.31 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.118 | 1.155 | |
/error-in-render avg req/sec | 2235.17 | 2164.39 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
framework-HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
main-HASH.js gzip | 20.2 kB | 20.2 kB | ✓ |
webpack-HASH.js gzip | 804 B | 804 B | ✓ |
Overall change | 60.3 kB | 60.3 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.1 kB | 31.1 kB | ✓ |
Overall change | 31.1 kB | 31.1 kB | ✓ |
Client Pages
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
_app-HASH.js gzip | 801 B | 801 B | ✓ |
_error-HASH.js gzip | 3.18 kB | 3.18 kB | ✓ |
amp-HASH.js gzip | 527 B | 527 B | ✓ |
css-HASH.js gzip | 334 B | 334 B | ✓ |
hooks-HASH.js gzip | 890 B | 890 B | ✓ |
index-HASH.js gzip | 263 B | 263 B | ✓ |
link-HASH.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..HASH.js gzip | 333 B | 333 B | ✓ |
withRouter-HASH.js gzip | 330 B | 330 B | ✓ |
bb14e60e810b..30f.css gzip | 125 B | 125 B | ✓ |
Overall change | 8.43 kB | 8.43 kB | ✓ |
Client Build Manifests
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
_buildManifest.js gzip | 395 B | 395 B | ✓ |
Overall change | 395 B | 395 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
index.html gzip | 573 B | 521 B | -52 B |
link.html gzip | 581 B | 535 B | -46 B |
withRouter.html gzip | 567 B | 516 B | -51 B |
Overall change | 1.72 kB | 1.57 kB | -149 B |
Diffs
Diff for index.html
@@ -5,70 +5,46 @@
<meta name="viewport" content="width=device-width" />
<meta name="next-head-count" content="2" />
<noscript data-n-css=""></noscript>
- <link
- rel="preload"
- href="/_next/static/chunks/webpack-16fb5e52861014c05b14.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/framework-9501ba6381d32c7692e1.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/main-8faa48d5cdf3a72b0a3c.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/pages/_app-28769756f9a0c21b149b.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/pages/index-96d821e908dd023681e4.js"
- as="script"
- />
- </head>
- <body>
- <div id="__next">Hello world 👋</div>
- <script id="__NEXT_DATA__" type="application/json">
- {
- "props": { "pageProps": {} },
- "page": "/",
- "query": {},
- "buildId": "BUILD_ID",
- "isFallback": false,
- "gip": true,
- "scriptLoader": []
- }
- </script>
<script
+ defer=""
nomodule=""
src="/_next/static/chunks/polyfills-78af6fe89161f65f5762.js"
></script>
<script
src="/_next/static/chunks/webpack-16fb5e52861014c05b14.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/framework-9501ba6381d32c7692e1.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/main-8faa48d5cdf3a72b0a3c.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/pages/_app-28769756f9a0c21b149b.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/pages/index-96d821e908dd023681e4.js"
- async=""
+ defer=""
></script>
- <script src="/_next/static/BUILD_ID/_buildManifest.js" async=""></script>
- <script src="/_next/static/BUILD_ID/_ssgManifest.js" async=""></script>
+ <script src="/_next/static/BUILD_ID/_buildManifest.js" defer=""></script>
+ <script src="/_next/static/BUILD_ID/_ssgManifest.js" defer=""></script>
+ </head>
+ <body>
+ <div id="__next">Hello world 👋</div>
+ <script id="__NEXT_DATA__" type="application/json">
+ {
+ "props": { "pageProps": {} },
+ "page": "/",
+ "query": {},
+ "buildId": "BUILD_ID",
+ "isFallback": false,
+ "gip": true,
+ "scriptLoader": []
+ }
+ </script>
</body>
</html>
Diff for link.html
@@ -5,75 +5,51 @@
<meta name="viewport" content="width=device-width" />
<meta name="next-head-count" content="2" />
<noscript data-n-css=""></noscript>
- <link
- rel="preload"
- href="/_next/static/chunks/webpack-16fb5e52861014c05b14.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/framework-9501ba6381d32c7692e1.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/main-8faa48d5cdf3a72b0a3c.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/pages/_app-28769756f9a0c21b149b.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/pages/link-59cf3226dc2ef2788890.js"
- as="script"
- />
- </head>
- <body>
- <div id="__next">
- <div>
- <h3>A Link page!</h3>
- <a href="/">Go to /</a>
- </div>
- </div>
- <script id="__NEXT_DATA__" type="application/json">
- {
- "props": { "pageProps": {} },
- "page": "/link",
- "query": {},
- "buildId": "BUILD_ID",
- "isFallback": false,
- "gip": true,
- "scriptLoader": []
- }
- </script>
<script
+ defer=""
nomodule=""
src="/_next/static/chunks/polyfills-78af6fe89161f65f5762.js"
></script>
<script
src="/_next/static/chunks/webpack-16fb5e52861014c05b14.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/framework-9501ba6381d32c7692e1.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/main-8faa48d5cdf3a72b0a3c.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/pages/_app-28769756f9a0c21b149b.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/pages/link-59cf3226dc2ef2788890.js"
- async=""
+ defer=""
></script>
- <script src="/_next/static/BUILD_ID/_buildManifest.js" async=""></script>
- <script src="/_next/static/BUILD_ID/_ssgManifest.js" async=""></script>
+ <script src="/_next/static/BUILD_ID/_buildManifest.js" defer=""></script>
+ <script src="/_next/static/BUILD_ID/_ssgManifest.js" defer=""></script>
+ </head>
+ <body>
+ <div id="__next">
+ <div>
+ <h3>A Link page!</h3>
+ <a href="/">Go to /</a>
+ </div>
+ </div>
+ <script id="__NEXT_DATA__" type="application/json">
+ {
+ "props": { "pageProps": {} },
+ "page": "/link",
+ "query": {},
+ "buildId": "BUILD_ID",
+ "isFallback": false,
+ "gip": true,
+ "scriptLoader": []
+ }
+ </script>
</body>
</html>
Diff for withRouter.html
@@ -5,70 +5,46 @@
<meta name="viewport" content="width=device-width" />
<meta name="next-head-count" content="2" />
<noscript data-n-css=""></noscript>
- <link
- rel="preload"
- href="/_next/static/chunks/webpack-16fb5e52861014c05b14.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/framework-9501ba6381d32c7692e1.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/main-8faa48d5cdf3a72b0a3c.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/pages/_app-28769756f9a0c21b149b.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/pages/withRouter-452d126a75584c6a354e.js"
- as="script"
- />
- </head>
- <body>
- <div id="__next"><div>I use withRouter</div></div>
- <script id="__NEXT_DATA__" type="application/json">
- {
- "props": { "pageProps": {} },
- "page": "/withRouter",
- "query": {},
- "buildId": "BUILD_ID",
- "isFallback": false,
- "gip": true,
- "scriptLoader": []
- }
- </script>
<script
+ defer=""
nomodule=""
src="/_next/static/chunks/polyfills-78af6fe89161f65f5762.js"
></script>
<script
src="/_next/static/chunks/webpack-16fb5e52861014c05b14.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/framework-9501ba6381d32c7692e1.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/main-8faa48d5cdf3a72b0a3c.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/pages/_app-28769756f9a0c21b149b.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/pages/withRouter-452d126a75584c6a354e.js"
- async=""
+ defer=""
></script>
- <script src="/_next/static/BUILD_ID/_buildManifest.js" async=""></script>
- <script src="/_next/static/BUILD_ID/_ssgManifest.js" async=""></script>
+ <script src="/_next/static/BUILD_ID/_buildManifest.js" defer=""></script>
+ <script src="/_next/static/BUILD_ID/_ssgManifest.js" defer=""></script>
+ </head>
+ <body>
+ <div id="__next"><div>I use withRouter</div></div>
+ <script id="__NEXT_DATA__" type="application/json">
+ {
+ "props": { "pageProps": {} },
+ "page": "/withRouter",
+ "query": {},
+ "buildId": "BUILD_ID",
+ "isFallback": false,
+ "gip": true,
+ "scriptLoader": []
+ }
+ </script>
</body>
</html>
Serverless Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
buildDuration | 12s | 12.4s | |
buildDurationCached | 3.7s | 3.5s | -230ms |
nodeModulesSize | 46.5 MB | 46.5 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
framework-HASH.js gzip | 39.3 kB | 39.3 kB | ✓ |
main-HASH.js gzip | 20.2 kB | 20.2 kB | ✓ |
webpack-HASH.js gzip | 804 B | 804 B | ✓ |
Overall change | 60.3 kB | 60.3 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.1 kB | 31.1 kB | ✓ |
Overall change | 31.1 kB | 31.1 kB | ✓ |
Client Pages
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
_app-HASH.js gzip | 801 B | 801 B | ✓ |
_error-HASH.js gzip | 3.18 kB | 3.18 kB | ✓ |
amp-HASH.js gzip | 527 B | 527 B | ✓ |
css-HASH.js gzip | 334 B | 334 B | ✓ |
hooks-HASH.js gzip | 890 B | 890 B | ✓ |
index-HASH.js gzip | 263 B | 263 B | ✓ |
link-HASH.js gzip | 1.64 kB | 1.64 kB | ✓ |
routerDirect..HASH.js gzip | 333 B | 333 B | ✓ |
withRouter-HASH.js gzip | 330 B | 330 B | ✓ |
bb14e60e810b..30f.css gzip | 125 B | 125 B | ✓ |
Overall change | 8.43 kB | 8.43 kB | ✓ |
Client Build Manifests
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
_buildManifest.js gzip | 395 B | 395 B | ✓ |
Overall change | 395 B | 395 B | ✓ |
Serverless bundles Overall decrease ✓
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
_error.js | 16.9 kB | 16.9 kB | -2 B |
404.html | 2.44 kB | 1.98 kB | -463 B |
500.html | 2.43 kB | 1.96 kB | -463 B |
amp.amp.html | 10.8 kB | 10.8 kB | ✓ |
amp.html | 1.63 kB | 1.17 kB | -460 B |
css.html | 1.81 kB | 1.35 kB | -460 B |
hooks.html | 1.69 kB | 1.23 kB | -462 B |
index.js | 17.2 kB | 17.2 kB | ✓ |
link.js | 17.4 kB | 17.4 kB | |
routerDirect.js | 17.4 kB | 17.4 kB | ✓ |
withRouter.js | 17.4 kB | 17.4 kB | ✓ |
Overall change | 107 kB | 105 kB | -2.31 kB |
Webpack 4 Mode (Increase detected ⚠️ )
General Overall increase ⚠️
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
buildDuration | 9.2s | 9.8s | |
buildDurationCached | 4.1s | 3.7s | -352ms |
nodeModulesSize | 46.5 MB | 46.5 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.065 | 1.929 | -0.14 |
/ avg req/sec | 1210.84 | 1296.01 | +85.17 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.199 | 1.025 | -0.17 |
/error-in-render avg req/sec | 2085.19 | 2439.56 | +354.37 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
677f882d2ed8..HASH.js gzip | 13.4 kB | 13.4 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-HASH.js gzip | 7.99 kB | 7.99 kB | ✓ |
webpack-HASH.js gzip | 751 B | 751 B | ✓ |
Overall change | 61.1 kB | 61.1 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
polyfills-HASH.js gzip | 31.3 kB | 31.3 kB | ✓ |
Overall change | 31.3 kB | 31.3 kB | ✓ |
Client Pages
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
_app-HASH.js gzip | 1.07 kB | 1.07 kB | ✓ |
_error-HASH.js gzip | 3.85 kB | 3.85 kB | ✓ |
amp-HASH.js gzip | 536 B | 536 B | ✓ |
css-HASH.js gzip | 339 B | 339 B | ✓ |
hooks-HASH.js gzip | 887 B | 887 B | ✓ |
index-HASH.js gzip | 227 B | 227 B | ✓ |
link-HASH.js gzip | 1.63 kB | 1.63 kB | ✓ |
routerDirect..HASH.js gzip | 303 B | 303 B | ✓ |
withRouter-HASH.js gzip | 302 B | 302 B | ✓ |
e025d2764813..52f.css gzip | 125 B | 125 B | ✓ |
Overall change | 9.28 kB | 9.28 kB | ✓ |
Client Build Manifests
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
_buildManifest.js gzip | 420 B | 420 B | ✓ |
Overall change | 420 B | 420 B | ✓ |
Rendered Page Sizes Overall decrease ✓
vercel/next.js canary | janicklas-ralph/next.js preload | Change | |
---|---|---|---|
index.html gzip | 627 B | 568 B | -59 B |
link.html gzip | 633 B | 581 B | -52 B |
withRouter.html gzip | 620 B | 560 B | -60 B |
Overall change | 1.88 kB | 1.71 kB | -171 B |
Diffs
Diff for index.html
@@ -5,79 +5,50 @@
<meta name="viewport" content="width=device-width" />
<meta name="next-head-count" content="2" />
<noscript data-n-css=""></noscript>
- <link
- rel="preload"
- href="/_next/static/chunks/webpack-becabbdf5d4df28a038e.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/framework.c2766659ac6e6a63ca79.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.20a22da5dd60e15fb078.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/main-2905608690234b155906.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/pages/_app-14e4eac7b0cda2ea09bf.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/pages/index-b460df3d63326fbb06a1.js"
- as="script"
- />
- </head>
- <body>
- <div id="__next">Hello world 👋</div>
- <script id="__NEXT_DATA__" type="application/json">
- {
- "props": { "pageProps": {} },
- "page": "/",
- "query": {},
- "buildId": "BUILD_ID",
- "isFallback": false,
- "gip": true,
- "scriptLoader": []
- }
- </script>
<script
+ defer=""
nomodule=""
src="/_next/static/chunks/polyfills-8e6ada07653aff5607ec.js"
></script>
<script
src="/_next/static/chunks/webpack-becabbdf5d4df28a038e.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/framework.c2766659ac6e6a63ca79.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.20a22da5dd60e15fb078.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/main-2905608690234b155906.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/pages/_app-14e4eac7b0cda2ea09bf.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/pages/index-b460df3d63326fbb06a1.js"
- async=""
+ defer=""
></script>
- <script src="/_next/static/BUILD_ID/_buildManifest.js" async=""></script>
- <script src="/_next/static/BUILD_ID/_ssgManifest.js" async=""></script>
+ <script src="/_next/static/BUILD_ID/_buildManifest.js" defer=""></script>
+ <script src="/_next/static/BUILD_ID/_ssgManifest.js" defer=""></script>
+ </head>
+ <body>
+ <div id="__next">Hello world 👋</div>
+ <script id="__NEXT_DATA__" type="application/json">
+ {
+ "props": { "pageProps": {} },
+ "page": "/",
+ "query": {},
+ "buildId": "BUILD_ID",
+ "isFallback": false,
+ "gip": true,
+ "scriptLoader": []
+ }
+ </script>
</body>
</html>
Diff for link.html
@@ -5,84 +5,55 @@
<meta name="viewport" content="width=device-width" />
<meta name="next-head-count" content="2" />
<noscript data-n-css=""></noscript>
- <link
- rel="preload"
- href="/_next/static/chunks/webpack-becabbdf5d4df28a038e.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/framework.c2766659ac6e6a63ca79.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.20a22da5dd60e15fb078.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/main-2905608690234b155906.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/pages/_app-14e4eac7b0cda2ea09bf.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/pages/link-670e2914a4b319eea5ad.js"
- as="script"
- />
- </head>
- <body>
- <div id="__next">
- <div>
- <h3>A Link page!</h3>
- <a href="/">Go to /</a>
- </div>
- </div>
- <script id="__NEXT_DATA__" type="application/json">
- {
- "props": { "pageProps": {} },
- "page": "/link",
- "query": {},
- "buildId": "BUILD_ID",
- "isFallback": false,
- "gip": true,
- "scriptLoader": []
- }
- </script>
<script
+ defer=""
nomodule=""
src="/_next/static/chunks/polyfills-8e6ada07653aff5607ec.js"
></script>
<script
src="/_next/static/chunks/webpack-becabbdf5d4df28a038e.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/framework.c2766659ac6e6a63ca79.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.20a22da5dd60e15fb078.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/main-2905608690234b155906.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/pages/_app-14e4eac7b0cda2ea09bf.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/pages/link-670e2914a4b319eea5ad.js"
- async=""
+ defer=""
></script>
- <script src="/_next/static/BUILD_ID/_buildManifest.js" async=""></script>
- <script src="/_next/static/BUILD_ID/_ssgManifest.js" async=""></script>
+ <script src="/_next/static/BUILD_ID/_buildManifest.js" defer=""></script>
+ <script src="/_next/static/BUILD_ID/_ssgManifest.js" defer=""></script>
+ </head>
+ <body>
+ <div id="__next">
+ <div>
+ <h3>A Link page!</h3>
+ <a href="/">Go to /</a>
+ </div>
+ </div>
+ <script id="__NEXT_DATA__" type="application/json">
+ {
+ "props": { "pageProps": {} },
+ "page": "/link",
+ "query": {},
+ "buildId": "BUILD_ID",
+ "isFallback": false,
+ "gip": true,
+ "scriptLoader": []
+ }
+ </script>
</body>
</html>
Diff for withRouter.html
@@ -5,79 +5,50 @@
<meta name="viewport" content="width=device-width" />
<meta name="next-head-count" content="2" />
<noscript data-n-css=""></noscript>
- <link
- rel="preload"
- href="/_next/static/chunks/webpack-becabbdf5d4df28a038e.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/framework.c2766659ac6e6a63ca79.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.20a22da5dd60e15fb078.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/main-2905608690234b155906.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/pages/_app-14e4eac7b0cda2ea09bf.js"
- as="script"
- />
- <link
- rel="preload"
- href="/_next/static/chunks/pages/withRouter-c910fe66863aa0ee6cad.js"
- as="script"
- />
- </head>
- <body>
- <div id="__next"><div>I use withRouter</div></div>
- <script id="__NEXT_DATA__" type="application/json">
- {
- "props": { "pageProps": {} },
- "page": "/withRouter",
- "query": {},
- "buildId": "BUILD_ID",
- "isFallback": false,
- "gip": true,
- "scriptLoader": []
- }
- </script>
<script
+ defer=""
nomodule=""
src="/_next/static/chunks/polyfills-8e6ada07653aff5607ec.js"
></script>
<script
src="/_next/static/chunks/webpack-becabbdf5d4df28a038e.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/framework.c2766659ac6e6a63ca79.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/677f882d2ed86fa3467b8979053c1a4c3f8bc4df.20a22da5dd60e15fb078.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/main-2905608690234b155906.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/pages/_app-14e4eac7b0cda2ea09bf.js"
- async=""
+ defer=""
></script>
<script
src="/_next/static/chunks/pages/withRouter-c910fe66863aa0ee6cad.js"
- async=""
+ defer=""
></script>
- <script src="/_next/static/BUILD_ID/_buildManifest.js" async=""></script>
- <script src="/_next/static/BUILD_ID/_ssgManifest.js" async=""></script>
+ <script src="/_next/static/BUILD_ID/_buildManifest.js" defer=""></script>
+ <script src="/_next/static/BUILD_ID/_ssgManifest.js" defer=""></script>
+ </head>
+ <body>
+ <div id="__next"><div>I use withRouter</div></div>
+ <script id="__NEXT_DATA__" type="application/json">
+ {
+ "props": { "pageProps": {} },
+ "page": "/withRouter",
+ "query": {},
+ "buildId": "BUILD_ID",
+ "isFallback": false,
+ "gip": true,
+ "scriptLoader": []
+ }
+ </script>
</body>
</html>
timneutkens
approved these changes
Jun 12, 2021
flybayer
pushed a commit
to blitz-js/next.js
that referenced
this pull request
Jun 16, 2021
Enable optimized Loading strategy by default
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enable optimized Loading strategy by default