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
Which @angular/* package(s) are the source of the bug?
compiler-cli
Is this a regression?
Yes
Description
We recently (Feb 14) switched to the esbuild build, and observed increased LCP and FCP - both lab and field data. We have HTTP2 enabled at our CDN (Cloudflare). We ended up rolling back to webpack (on Mar 13).
Some charts demonstrating the impact
Lab data: LCP (desktop)
Jumped from 1.7s to 1.9s
Field data: LCP (desktop)
Jumped from 2.9s to 3.2s
Note that we only updated the browser builder (from browser to browser-esbuild), and didn't migrate the SSR part from server to application (we deferred this due to some breaking changes with the existing code).
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version)
It might be related to the large number of chunk files esbuild produces: 140 initial and 90 lazy-loaded. For comparison, with webpack it is 5 initial and 60 lazy-loaded.
Total size of initial chunks with esbuild is slightly higher than with webpack: 5.5MB vs 5.1MB uncompressed.
Compression also seems to favor fewer big chunks. Compressed (transferred) size is 1.8MB (esbuild) vs 1.5MB (webpack). It's 20% transfer size increase!
Previously, someone else also reported a drop in Lighthouse score, despite having HTTP 2: #26307 (comment)
The text was updated successfully, but these errors were encountered:
Hey @amakhrov, diagnosing the root cause of the LCP and FCP increase is challenging without a reproduction.
Esbuild's generation of numerous chunks is intrinsic to its design, driven by internal algorithms. Unlike webpack, chunk control isn't currently possible. Check out evanw/esbuild#207 and evanw/esbuild#1128 for more context.
Regarding the size increase, a 400kb uncompressed JS file is substantial, given JS's parsing complexity. Unfortunately, pinpointing the cause and suggesting improvements necessitates a minimal reproduction.
Which @angular/* package(s) are the source of the bug?
compiler-cli
Is this a regression?
Yes
Description
We recently (Feb 14) switched to the esbuild build, and observed increased LCP and FCP - both lab and field data. We have HTTP2 enabled at our CDN (Cloudflare). We ended up rolling back to webpack (on Mar 13).
Some charts demonstrating the impact
Lab data: LCP (desktop)
Jumped from 1.7s to 1.9s
Field data: LCP (desktop)
Jumped from 2.9s to 3.2s
Note that we only updated the browser builder (from
browser
tobrowser-esbuild
), and didn't migrate the SSR part fromserver
toapplication
(we deferred this due to some breaking changes with the existing code).Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
Previously, someone else also reported a drop in Lighthouse score, despite having HTTP 2: #26307 (comment)
The text was updated successfully, but these errors were encountered: