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
{{ message }}
Repository navigation
Angular SSR critical CSS inlining can exhaust memory with deeply nested HTML #34157
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
Angular SSR can exhaust the Node.js heap while inlining critical CSS when server-rendered HTML contains deeply nested elements that match descendant selectors from the application's stylesheet.
This can happen with a normal sanitized [innerHTML] binding.
With optimization.styles.inlineCritical enabled, a single request containing 2,696 bytes of nested <ul> markup consistently terminates a worker using a 512 MiB V8 heap:
FATAL ERROR: Ineffective mark-compacts near heap limit
Allocation failed - JavaScript heap out of memory
Activity
alan-agius4 commentedon Sep 24, 2026
This is a not caused by Angular, this is a 3rd party dependency issue.
angular-automatic-lock-bot commentedon Oct 25, 2026
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.