From 6cff2a6fc830853194862e90ac8a2321990e1e71 Mon Sep 17 00:00:00 2001 From: Jane Chu <7559015+janechu@users.noreply.github.com> Date: Fri, 29 May 2026 14:35:44 -0700 Subject: [PATCH] fix(fast-element): add update scheduler fallback Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- ...-a2febdf1-f514-4603-8aaa-8ac580c5e3ad.json | 7 ++ packages/fast-element/DESIGN.md | 6 +- packages/fast-element/MIGRATION.md | 5 +- packages/fast-element/SIZES.md | 26 +++---- .../fast-element/docs/architecture/updates.md | 4 ++ .../src/observation/update-queue.pw.spec.ts | 67 +++++++++++++++++-- .../src/observation/update-queue.ts | 11 ++- .../src/docs/3.x/resources/browser-support.md | 4 ++ 8 files changed, 106 insertions(+), 24 deletions(-) create mode 100644 change/@microsoft-fast-element-a2febdf1-f514-4603-8aaa-8ac580c5e3ad.json diff --git a/change/@microsoft-fast-element-a2febdf1-f514-4603-8aaa-8ac580c5e3ad.json b/change/@microsoft-fast-element-a2febdf1-f514-4603-8aaa-8ac580c5e3ad.json new file mode 100644 index 00000000000..69bee5ecddc --- /dev/null +++ b/change/@microsoft-fast-element-a2febdf1-f514-4603-8aaa-8ac580c5e3ad.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "fix: add update scheduler fallback", + "packageName": "@microsoft/fast-element", + "email": "7559015+janechu@users.noreply.github.com", + "dependentChangeType": "none" +} diff --git a/packages/fast-element/DESIGN.md b/packages/fast-element/DESIGN.md index 752c5f110e5..51d160ace2b 100644 --- a/packages/fast-element/DESIGN.md +++ b/packages/fast-element/DESIGN.md @@ -44,7 +44,7 @@ For deep dives into specific areas, see the linked detailed documents. | Declarative templating | `html` tagged template literal → `ViewTemplate` → compiled `HTMLView` | | Declarative HTML runtime | `@microsoft/fast-element/declarative.js` → `declarativeTemplate()`, `TemplateParser`; `@microsoft/fast-element/schema.js` → `Schema` | | Schema-driven extensions | `@microsoft/fast-element/attribute-map.js` and `@microsoft/fast-element/observer-map.js` → map helpers usable with declarative or manually supplied schemas | -| Async DOM updates | `Updates` queue (batched, `requestAnimationFrame`-aligned) | +| Async DOM updates | `Updates` queue (batched, `requestAnimationFrame`-aligned with a `setTimeout` fallback) | | Scoped styles | `css` tagged template literal → `ElementStyles` → `adoptedStylesheets` / `