Troubleshooting
The widget button does not appear
Section titled “The widget button does not appear”- Open the browser’s Network panel and confirm the JavaScript file returns successfully (HTTP 200).
- Check the Console for a syntax error or Content Security Policy violation.
- Confirm that the script tag is included once and points to the correct file. With
defer, the widget runs after HTML parsing; it does not need a separate mount element. - Confirm the page is using a browser with the required DOM features, including Shadow DOM and
localStorage.
The widget is not supported on browser-internal pages or non-web schemes. The browser extension, separately, injects only on HTTP and HTTPS tabs.
jsDelivr or npm loading fails
Section titled “jsDelivr or npm loading fails”- Confirm the package name is exactly
@projekt-ansichtssache/accessibility-widgetand that the pinned version exists. Check withnpm view @projekt-ansichtssache/accessibility-widget versions --json. - Confirm the file path is
accessibility-widget.min.js(oraccessibility-widget.jsfor the readable bundle). - Check network filters, proxy settings, DNS, and the browser Network panel for CDN errors.
- If a CDN is unavailable under your site’s policy or network conditions, self-host the bundle.
Settings do not persist
Section titled “Settings do not persist”The widget uses localStorage for the current origin. Storage may be disabled, cleared, or isolated in private browsing. Check the browser’s site-data settings and Console for storage-related errors. The widget catches storage exceptions but cannot save settings when storage is blocked.
Some options do not work
Section titled “Some options do not work”Speech, timer sound, sentence highlighting, and optional fonts depend on browser APIs or network requests. Check API support and the browser Console/Network panel. These features may vary by browser; there is no published browser-version compatibility matrix.
CSP blocks the widget or its styles
Section titled “CSP blocks the widget or its styles”Allow the script’s origin in script-src. The widget injects style elements and inline style values; a strict style-src policy can block parts of its presentation. The widget does not expose a CSP nonce configuration option. Review CSP violations in the Console and adjust policy only as appropriate for your security requirements.
If optional fonts are selected with the standard bundle, the policy may also need to allow fonts.googleapis.com, fonts.gstatic.com, and raw.githubusercontent.com. The self-hosted-font and embedded-font variants instead use same-origin font files or data URLs. See Self-hosting and Widget privacy notes for site operators.
The page looks different than expected
Section titled “The page looks different than expected”The widget applies styles to page content, and site-specific CSS can interact with those changes. The UI itself is isolated in Shadow DOM, but the page content remains subject to site styles. Test all controls against your actual templates and ensure content remains usable when a visitor resets widget settings.