IT lexicon › Web › Paint Timing API

Paint Timing API

Web På svenska → Updated: 2026-11-15

A browser API that measures when pages render and visual content becomes visible.

The Paint Timing API exposes two key timestamps: `first-paint` (first pixel painted anywhere) and `first-contentful-paint` (first meaningful content pixel — text, image, or colored background). These are foundational to Core Web Vitals and accessible via `performance.getEntriesByType("paint")`.

These metrics are critical diagnostics. If first-contentful-paint exceeds 2.5 seconds, users abandon the page. The Paint Timing API helps developers isolate whether slow initial rendering stems from CSS parsing, JavaScript execution, or slow resource downloads.

← Back to the lexicon