The Hidden Cost of Zone.js and What Replaces It
summary
Zone.js monkey patches browser async APIs, adds about 33 kilobytes to bundles, complicates debugging and breaks some integrations because constructs like async/await aren’t patchable. Modern zoneless Angular uses a ChangeDetection abstraction with ChangeDetectionScheduler and ApplicationRef.tick working off precise dirty flags and notification sources so change detection runs only for affected view paths (signals mark changed nodes and ancestors), reducing work and improving performance and developer experience.
AI-written summary · about
