EqualWeb Accessibility Overlay
Technical guide to integrating the EqualWeb accessibility widget: configuring window.interdeal, setting up Content Security Policy (CSP), optimizing Core Web Vitals, and evaluating overlay trade-offs.
EqualWeb Accessibility Overlay
EqualWeb is a client-side accessibility overlay widget that gives end users an on-page toolbar to customize visual presentation and injects runtime accessibility (a11y) adjustments targeting WCAG 2.1/2.2 AA, ADA Title III, and Section 508 requirements.
For engineering teams, it offers a fast drop-in third-party script integration that requires minimal changes to existing application code.
Integration complexity: 1 / 10
How It Works
EqualWeb runs entirely in the browser at runtime:
- Loader script: A lightweight bootstrap script (~5 KB) loads asynchronously (
asyncordefer) and reads configuration from thewindow.interdealglobal object. - DOM injection: The loader fetches the core bundle from the EqualWeb CDN and mounts a floating trigger button and accessibility control modal into
document.body. - Runtime DOM mutation & CSS overrides: When a user toggles an accessibility profile or adjustment (such as high contrast, text scaling, dyslexia-friendly fonts, or paused animations), the script:
- Injects utility classes and inline
<style>tags to override existing page styles. - Scans the live DOM and dynamically attaches
aria-label,role, andtabindexattributes to elements missing semantic metadata.
- Injects utility classes and inline
Installation and Integration
1. Standard HTML Snippet
Place the configuration and loader script right before the closing </body> tag (or in <head> because the loader sets defer = true):
2. Single-Page Applications (React / Next.js)
In SPAs and meta-frameworks like Next.js, load the script once in the root layout so it persists across client-side route transitions without re-initializing:
Configuration Reference (window.interdeal)
Content Security Policy (CSP) Configuration
If your web server or CDN enforces a strict Content-Security-Policy header, allowlist the EqualWeb origins across the following directives:
EqualWeb injects inline <style> blocks into the DOM whenever a user activates color, font, or contrast adjustments. Because these styles are generated dynamically at runtime, style-src must include 'unsafe-inline' unless your setup propagates a runtime CSP nonce to third-party scripts.
Performance & Core Web Vitals Impact
When adding a third-party DOM-scanning widget, monitor these Core Web Vitals metrics:
- Largest Contentful Paint (LCP):
Always load the script with
deferor Next.jsstrategy="lazyOnload"so it never competes with critical rendering resources or delays the LCP element. - Total Blocking Time (TBT) & Interaction to Next Paint (INP): The widget bundle executes after the initial DOM is ready. On pages with large DOM trees (>1,500 nodes), automated DOM scanning and ARIA attribute patching can occupy the main thread for 50–150 ms.
- Cumulative Layout Shift (CLS):
The floating trigger button uses
position: fixedwith explicit offsets (btn_horizontal,btn_vertical), so it does not shift document flow. However, make sure its coordinates do not overlap other floating UI elements such as live chat widgets (Zendesk, Intercom) or back-to-top buttons.
Technical Trade-Offs: Overlay vs. Native Remediation
Summary
- Use EqualWeb when you need to quickly provide an on-page accessibility toolbar for visual adjustments while longer-term engineering remediation is underway.
- Load the bundle asynchronously (
defer/lazyOnload) and configure your CSP headers to prevent blocked assets in production. - Treat overlays as a supplement, not a replacement, for native accessibility: write Semantic HTML, manage keyboard focus properly, and author meaningful
altattributes directly in your source code.