【发布时间】:2023-01-09 12:26:12
【问题描述】:
我正在使用自托管的 Next.js v12.1,无法弄清楚为什么有时 nextjs 块和 ssgManifest 和 buildManifest 在网页测试中显示为渲染阻止脚本。然后有时不会。在移动设备上,我看到几乎每个网页都测试了它的阻塞。
知道为什么这些脚本有时会阻止渲染而有时却不会吗?无论如何要使非阻塞情况保持不变?
这是我感兴趣的脚本:
_next/static/chunks/main-fb95403.js
_next/static/chunks/framework-39ce2d5.js
_next/static/chunks/29107295-1494f23.js
_next/static/chunks/pages/_app-aa9b9b5.js
_next/static/chunks/webpack-4135c46.js
_next/static/chunks/7d4a1fc8-5761f94.js
_next/static/chunks/68720aa6-e7ea202.js
_next/static/chunks/638-3dce4b4.js
_next/static/chunks/187-f856d9f.js
_next/static/chunks/pages/%5B%5B...slug%5D%5D-11483ee.js
_next/static/VAOqpdvYg-1xlcQ8QG1XS/_buildManifest.js
_next/static/VAOqpdvYg-1xlcQ8QG1XS/_ssgManifest.js
_next/static/VAOqpdvYg-1xlcQ8QG1XS/_middlewareManifest.js
这是它不阻塞的示例:
渲染阻塞脚本的示例
【问题讨论】:
标签: next.js webpagetest