# bramstein/fontfaceobserver

Webfont loading. Simple, small, and efficient.

Repository: https://github.com/bramstein/fontfaceobserver
Canonical: https://ross.abutalabs.com/products/fontfaceobserver
Homepage: https://fontfaceobserver.com
Language: JavaScript
License: BSD-2-Clause
License Family: permissive
Topics: webfonts, fontfaceobserver, font-loading, web-fonts
Last push: 2025-02-18T06:37:15+00:00

## Health v2 (maintenance only)
Score: 35/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 7, release rhythm 35, longevity 100
- inputs: {"age_days": 4297, "days_push": 561, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4335, forks 265 (observed 2026-08-28T04:08:46.040787+00:00)

## What it is
Font Face Observer is a small JavaScript library that loads and monitors @font-face webfonts, notifying you via promises when a font becomes available or fails to load. It works with any webfont service or self-hosted fonts and adds minimal overhead (1.3KB gzipped).

## Use cases
- detect when a webfont has finished loading
- avoid flash of invisible text during font loading
- load multiple webfonts and wait for all of them
- monitor font loading with a custom timeout
- check availability of non-latin webfonts with a custom test string

## When to choose
- you need lightweight, dependency-free webfont load detection
- you want promise-based font loading events compatible with any font service
- you need fine control over how and when fonts load

## When to avoid
- you want an all-in-one solution that also injects @font-face rules and handles font services for you
- you only target modern browsers where the native FontFaceSet API (document.fonts) suffices

## Facets
- artifact type: library
- maturity: maintenance
- function: frontend-framework, developer-tools
- domain: web-development, frontend
- platform: browser
- tags: webfonts, font-loading, font-face, promise-based, font-events, nodejs

## Member repositories
- bramstein/fontfaceobserver (main) score 35

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:46.040787+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:21:38.477417+00:00, confidence not recorded.
  - readme: https://github.com/bramstein/fontfaceobserver (fetched 2026-08-28T04:08:46.040787+00:00, sha b6d61ff2beed)
  - homepage: https://fontfaceobserver.com (fetched 2026-08-29T09:10:37.152363+00:00, sha 077d39fa9f7d)
  - registry_npm: https://registry.npmjs.org/fontfaceobserver (fetched 2026-08-29T09:10:37.162327+00:00, sha d6526d930abc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
