【问题标题】:Next.js chunks and ssgManifest buildManifest blocking render sometimesNext.js 块和 ssgManifest buildManifest 有时会阻塞渲染
【发布时间】: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


    【解决方案1】:

    原来是网页测试的一个错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-23
      • 1970-01-01
      • 2019-04-02
      • 2014-05-09
      • 2016-01-26
      • 2016-10-26
      • 2017-07-23
      相关资源
      最近更新 更多