Files
iptvnator/apps/web
4grayandClaude Fable 5.1 60bccc96e8 perf(web): resolve MatDialog on first use in the services created at startup
Four root services imported MatDialog statically: the confirm dialog
service, the player service (external player info), the parental lock
prompt and the workspace shell actions (add playlist, account info). Each
already loaded its dialog component on demand, but the service import alone
kept @angular/material/dialog and @angular/cdk/dialog in the initial bundle.

LazyMatDialog (@iptvnator/ui/components/lazy-dialog) imports the dialog
module on first use and resolves the root MatDialog from it, retrying after
a failed chunk load; the four services open their dialogs once both the
service and the component's chunk are in. openConfirmDialog now returns a
promise that settles when the dialog is open, logs a failed load and
performs no action for it; its callers never used the return value.

renderer.initialBytes: 1,463,083 -> 1,432,237 bytes (-30,846) on a local
production build.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 09:49:55 +02:00
..
2025-10-07 18:02:13 +02:00