Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(vercel#41164): polyfill-module should block hydration (verce…
…l#41352) The PR continues from vercel#41164. `next/script` with `beforeInteractive` should not block the hydration, **but the `polyfill-nomodule` *should* block the hydration** (and should be loaded before other scripts), as `polyfill-nomodule` includes multiple polyfills to even execute `main-app.[hash].js` properly on old browsers (`Array.prototype.includes`, `String.prototype.startsWith`, etc.). Without `polyfill-nomodule` being loaded first, the entire bootstrap/hydration process might not even work on old browsers. So it should not be loaded through `__next_s`. cc @shuding Co-authored-by: Shu Ding <g@shud.in>
- Loading branch information