Skip to content

fix(@angular/ssr): avoid preloading unnecessary dynamic bundles - #30560

Merged
hybrist merged 1 commit into
angular:mainfrom
alan-agius4:preload-ssr-dynamic
Jun 23, 2025
Merged

hybrist merged 1 commit into
angular:mainfrom
alan-agius4:preload-ssr-dynamic

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

This change to @angular/ssr prevents the preloading of dynamically imported bundles that aren't directly associated with routing.

Previously, Angular SSR might preload all dynamic bundles, even those not immediately required, such as deferred chunks within components.

Closes #30541

This change to `@angular/ssr` prevents the preloading of dynamically imported bundles that aren't directly associated with routing.

Previously, Angular SSR might preload all dynamic bundles, even those not immediately required, such as deferred chunks within components.

Closes angular#30541
@alan-agius4
alan-agius4 requested a review from dgp1130 June 19, 2025 07:28
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jun 19, 2025
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jun 23, 2025
@hybrist
hybrist merged commit 861a61a into angular:main Jun 23, 2025
@hybrist

hybrist commented Jun 23, 2025

Copy link
Copy Markdown
Contributor

The changes were merged into the following branches: main, 20.0.x

@alan-agius4
alan-agius4 deleted the preload-ssr-dynamic branch June 23, 2025 20:40
@angular-automatic-lock-bot

Copy link
Copy Markdown

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.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jul 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/ssr target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Defer chunks being preloaded when they should not be

3 participants