Skip to content

Choose a bundle

The published package offers three browser bundles. Their main difference is how optional reading fonts are delivered. The widget’s other features are the same.

Bundle File Font delivery Choose it when
Standard accessibility-widget.min.js Fonts are requested from Google Fonts or GitHub only when a visitor selects one. You want one script and accept requests to those providers for optional fonts.
Embedded fonts accessibility-widget.embedded-fonts.min.js Font data is included in the JavaScript file; no separate font requests or companion files. You want a single file and no requests to external font providers. The script download is larger.
Self-hosted fonts self-hosted/accessibility-widget.min.js plus the complete self-hosted/ directory Font files are separate and loaded from the same origin as the script. You want font files served from your own site or CDN location.

These are delivery choices, not different accessibility levels. A widget does not replace accessible content, keyboard support, or testing; see what it can and cannot do.

  • jsDelivr: use the jsDelivr guide for exact URLs for all three variants.
  • Your own server: download the files from the latest GitHub release, or use the self-hosting guide. For the self-hosted-font option, keep the full directory structure, including fonts/ and THIRD-PARTY-NOTICES.txt.
  • npm: install @projekt-ansichtssache/accessibility-widget; see npm installation for the standard and embedded-font bundles. The self-hosted-font bundle is available from GitHub releases only.

The widget initializes itself when the document is ready. Include only one bundle once per page. For production, pin CDN URLs to a reviewed package version rather than using the moving @latest alias.