Learnings from migrating Accessibility Insights for Web to Chrome’s Manifest V3
Moving the Accessibility Insights for Web extension from Manifest V2 to V3 meant replacing persistent background pages with service workers that can shut down when idle. In-memory state now gets backed up to IndexedDB: it is read once at worker startup and written on every update, and a PR bot flags changes to stored data shapes for backward compatibility. Placeholder event handlers registered on the first event loop defer events until async setup finishes. Content scripts poll runtime.id instead of holding runtime.connect ports, and "fire and forget" onMessage listeners were converted to properly awaited async responses so the worker isn't killed early. Dual MV2/MV3 builds in one repo and separate release channels avoided risky merges and the store's ban on downgrading MV3 extensions to MV2.
Related posts
- How to Use Transformers.js in a Chrome Extension
Hugging Face mediumAdeptRunning local AI in a Chrome Manifest V3 extension works best when the background service worker hosts all Transformers.js models and agent state, while the side panel UI and content scripts act as thin clients over a typed messaging contract. The reference build (a Gemma 4 E2B browser assistant) uses Gemma 4 E2B (q4f16, WebGPU) for tool-calling reasoning and MiniLM embeddings for semantic search over pages and history. Inference in the background gives one model instance, one cache under the extension origin, and a responsive UI. The guide also covers parsing Gemma tool-call tokens into deterministic tool executions, splitting the internal model transcript from the UI transcript, and placing state by lifecycle across memory, chrome.storage and IndexedDB. Service workers can be suspended, so model runtime state should be recoverable, and Vite should produce one artifact per manifest entry point.
- News from WWDC22: WebKit Features in Safari 16 Beta
WebKit easyNoviceSafari 16 beta adds Container Queries (size queries plus cqw/cqh/cqi/cqb/cqmin/cqmax units), CSS Subgrid, Web Push on macOS Ventura via the standard Push API, Notifications API and Service Worker backed by Apple Push Notification service, and Shared Workers. Web Inspector gains a Flexbox Inspector and support for developer-tools extensions built on the same JavaScript APIs as other browsers. Other additions include CSS Offset Path, animatable grids, overscroll-behavior, and a re-architected macOS accessibility layer that serves twice as many requests in 25% less time on complex pages. Existing Web Push implementations work unchanged as long as sites use feature detection and allow push.apple.com subdomains.
- From latency to instant: Modernizing GitHub Issues navigation performance
GitHub Engineering mediumAdeptGitHub made Issues navigation feel instant by moving to a local-first, stale-while-revalidate model: render issue pages from client-side data first, then revalidate in the background. A persistent IndexedDB cache made about 22% of React soft navigations instant at a ~33% hit rate, with roughly 4.7% server/cache divergence. Rate-limited, low-priority preheating from issue lists and an in-memory cache tier raised the hit ratio to ~96%, so up to ~70% of React navigations became instant. A service worker extends the cache to Turbo and hard navigations by signalling cache hits via a request header, letting the server return a thin HTML shell instead of a full server-rendered page. The tradeoff on hard navigations is that the critical path shifts to JavaScript download and execution.
- Accessibility Insights for Windows
Engineering@Microsoft mediumAdeptAccessibility Insights for Windows is an open-source .NET/WPF tool built on Microsoft's UI Automation framework for finding and fixing accessibility issues in Windows apps. Inspect mode exposes each element's position in the UI Automation tree plus its properties and patterns, which is the same data screen readers see. FastPass combines rule-based Automated Checks with a Tab Stops test driven by FocusChanged events, and Event mode records the UI Automation events assistive technologies observe. A Color Contrast Analyzer checks colors against WCAG ratios, and the rules engine, Axe.Windows, ships as a NuGet package with a CLI so the checks can run in tests and CI/CD pipelines.
- Remixing Shopify's Admin: How We Made It 30% Faster and AI-Ready
Shopify Engineering mediumAdeptShopify migrated its Admin (67 million daily page views, 101 teams, ~350 PRs merged daily, 3M+ lines of TypeScript) to Remix in SPA mode with Vite. The result is a 30% improvement in perceived load times. Statically globbed, typed route manifests replaced a runtime getRoutes function and give Search and Sidekick a single source of truth for all 1,017 routes. Remix loaders remove the code-then-data waterfall by fetching a 3.2kb loader in parallel with a 914kb component bundle, and idle-time prefetching of loaders warms an Apollo cache persisted in IndexedDB. Adding Remix actions and zod schemas lets the Sidekick AI fill and submit forms without loading UI JavaScript.