Browser support
A Qat app runs in browsers from 2023 on. Everything Qat uses beyond that is detected, and works without it.
| Feature | Qat uses it for | Supported from | Without it |
|---|---|---|---|
ES modules, dynamic import() |
every build | Chrome 63, Firefox 67, Safari 11.1 | — (the floor) |
| Import maps | qatjs dev; a federation shell; the integrity map |
Chrome 89, Firefox 108, Safari 16.4 | a plain build works; qatjs dev and federation need them |
Import map integrity |
SRI for lazily loaded chunks | Chrome 127 | ignored: the page's own scripts are still checked |
| Several import maps | a federation shell beside the integrity map | Chrome 133 | the shell builds one map at boot, without the integrity section |
Constructed stylesheets (adoptedStyleSheets) |
component CSS in qatjs dev and unextracted builds |
Chrome 73, Firefox 101, Safari 16.4 | — |
| Scoped CSS | each .qx <style> |
everywhere: an attribute selector (.x[q-a1b2]) |
— |
@scope |
only <style scope="native"> (opt-in) |
Chrome 118, Safari 17.4, Firefox 146 | the default attribute scoping |
| View Transitions (same document) | route changes | Chrome 111, Safari 18, Firefox 144 | the page changes without the animation |
requestIdleCallback, scheduler.postTask |
idle(), defer() |
Chrome 47 / 94, Firefox 55 / 142 | setTimeout (Safari) |
| Declarative Shadow DOM | server rendering of define(…, { shadow: true }) (@qatjs/server/element, @qatjs/resume/element) |
Chrome 111, Firefox 123, Safari 16.4 | attachShadow on the client |
| Custom elements | define(), framework remotes (bridges) |
Chrome 67, Firefox 63, Safari 10.1 | — |
Proxy |
deep state({…}) |
everywhere | — |
- The output is the syntax you write (ES2022):
qatjs compressdoes not transpile JavaScript. It prefixes and lowers CSS for yourbrowserslist, with Lightning CSS. - Tested in Chrome, by every Playwright suite. The other columns come from each feature's
support, and the "without it" paths are unit-tested (no
requestIdleCallback, no View Transitions).