Updated

Technology · Code & frameworks

Zone.js

github.com

What is Zone.js?

Zone.js is a JavaScript library that gives code an execution context, called a zone, that persists across async tasks. It is MIT licensed and is no longer accepting new features.[1][2]

Zone.js is a crucial part of the Angular framework, providing a mechanism for encapsulating and intercepting asynchronous activities in JavaScript. It creates a context that persists across async tasks, allowing for better tracking of asynchronous operations. This is particularly useful for change detection in Angular, as well as for debugging and testing asynchronous code. Zone.js helps manage complex asynchronous workflows by providing hooks to intercept various async operations, making it easier to understand and control the execution flow in JavaScript applications.

Zone.js belongs toJavaScript frameworkscategory.

What it is

An execution context that persists across async tasks[1]

Used by

Angular apps; new apps are zoneless by default[3]

License

MIT, free to use[2]

Status

No new features; critical Angular-related fixes only[1]

29websites

use it — 1.1% of the 2,549 websites we scanned in the last 12 months

#15of 43

tools in its category seen in our scans (we recognize 90)

1public pages

on UptimeCard — open any of them to see how that site is doing

In short: you will meet it in existing Angular apps and test setups; new Angular apps no longer need it. It takes no new features, so do not start new work on it.[3][1]

1.18% of all websites we track run Zone.js

What is Zone.js used for?

In short, from the websites we scan

Telling Angular when to update
Watches DOM events and async tasks as signs that app state may have changed, then triggers change detection.[3]
Tracking async tasks
Keeps an execution context across async tasks, like thread-local storage for JavaScript.[1]
Patching browser and Node APIs
Patches standard APIs such as DOM events, XMLHttpRequest, EventEmitter and fs so they run inside a zone.[4]
Testing async code
Supports Jasmine, Mocha and Jest tests with helpers such as fakeAsync.[1]
What it does
Zone.js is one of the JavaScript frameworks websites use. In our scans it is #15 of the 43 we see.
Used together with
It is often installed next to Node.js, DigiCert, Amazon CloudFront.

Should you use Zone.js?

The 10-second version, from the vendor’s own pages and what we see in our scans

Zone.js fits if…

  • You maintain an existing Angular app or test suite that still loads zone.js[3]

Look elsewhere if…

  • You start a new Angular app: zoneless change detection is the default and avoids zone.js[3]
  • You want zones outside Angular: the Angular team strongly discourages that[1]
The project is not accepting new features or patches for new platform APIs[1]
The patches add overhead, which is why modules can be chosen individually[1]

Support and help for Zone.js

How the vendor says you can reach it, and the public help community

Bug fixes

Only critical bug fixes related to Angular's direct use of Zone.js are accepted[6]

Stack Overflow

155 questions[7][8]

55% have an upvoted answer. [zone.js] questions

Zone.js versions

The newest release, the series that still gets fixes, and what changed

Latest release

0.16.3[2][5]

Released 2 Sept 2026

How Zone.js sites protect themselves

Share of the 29 sites we scanned that run each protection

HSTS72% · 21 sites

HTTP Strict Transport Security (HSTS) informs browsers that the site should only be accessed using HTTPS

reCAPTCHA21% · 6 sites

reCAPTCHA is a free service from Google that helps protect websites from spam and abuse

Akamai Bot Manager10% · 3 sites

Akamai Bot Manager detect bots using device fingerprinting bot signatures

Protections add up, they do not replace each other: a site can run all of them.

How Zone.js sites are built

Closest partners. The number says how many times more often the tool runs on Zone.js sites than on an average website. Hover a partner for its share of sites.

Express17×lit-html3×Lodash2×Amazon S32×Akamai2×DigiCert2×

Usually installed alongside

The bigger the bubble, the more of the 29 Zone.js sites also run the tool. Colour shows what the tool does. Hover or tap a bubble for details.

Google Tag Manager55%Google Analytics35%Azure Monitor10%Dynatrace10%Microsoft Advertising21%OneTrust17%Cart Functionality10%
Tag managerAnalyticsAdvertisingCookie consentOnline store

Who is behind Zone.js

From its own pages and public records, with sources

Maintained by

Angular team[6]

Its story

  1. 2013

    The angular/zone.js repository was created on GitHub to implement Zones for JavaScript.[9]

  2. 2014

    The first version, 0.1.0, was released.[10]

  3. 2019

    Zone.js moved into the Angular monorepo: from version 0.10.0 the changelog compares point into angular/angular rather than angular/zone.js.[5][9]

  4. 2020

    Version 0.11.1 switched to the Angular Package Format, so importing zone.js loads an ES2015 bundle in ESM format.[5][1]

  5. 2025

    Zoneless Angular became stable as of Angular 20.2, and Zone.js stopped accepting new features as Angular moved toward zoneless apps.[11][1]

  6. 2025

    Version 0.16.0 ended support for Internet Explorer and non-Chromium Edge.[5]

  7. 2026

    Version 0.16.2 added support for patching Vitest in the zone.js testing bundle.[5]

Questions about Zone.js

What is Zone.js?
Zone.js is a JavaScript library that gives code an execution context, called a zone, that persists across async tasks. It is MIT licensed and is no longer accepting new features.
What is Zone.js used for?
Watches DOM events and async tasks as signs that app state may have changed, then triggers change detection. Keeps an execution context across async tasks, like thread-local storage for JavaScript. Patches standard APIs such as DOM events, XMLHttpRequest, EventEmitter and fs so they run inside a zone. Supports Jasmine, Mocha and Jest tests with helpers such as fakeAsync. Zone.js is one of the JavaScript frameworks websites use. In our scans it is #15 of the 43 we see. It is often installed next to Node.js, DigiCert, Amazon CloudFront.
Do new Angular apps need Zone.js?
No. Zoneless change detection is the default from Angular v21, so new apps do not need it.[3]
Can I remove Zone.js from an Angular app?
Yes. Zoneless apps should remove it from the build entirely to reduce bundle size.[3]
Is Zone.js still maintained?
It is a supported part of Angular, but it takes no new features and only critical bug fixes tied to Angular's own use.[1]
Why do people remove Zone.js?
The Angular guide lists better performance, Core Web Vitals, debugging and ecosystem compatibility as reasons to go zoneless.[3]
Does Zone.js work with Jest, Mocha and Jasmine?
Yes. Its testing bundle supports all three and adds helpers such as fakeAsync.[1]
Which license does Zone.js use?
MIT.[2]
How many websites use Zone.js?
We found Zone.js on 29 of the 2,549 websites we scanned in the last 12 months (1.1%). 1 of them have a public status page.
What are the alternatives to Zone.js?
Other JavaScript frameworks we recognize include React, Next.js, Vue.js, GSAP.

Is your website built with Zone.js?

Create a free status page that shows your visitors your site is up. It also gives your site its own public page where new people can discover it.

Example status page card