All Projects → w3c → Paint Timing

w3c / Paint Timing

Licence: other
Paint Timing

Labels

Projects that are alternatives of or similar to Paint Timing

Docker Makefile
Makefile for building docker repository releases
Stars: ✭ 204 (-9.73%)
Mutual labels:  makefile
Easyrtspclient
Streaming media sdk tool:An elegant, simple, high performance & high compatibility RTSP Client Utility,can use in RTSP Player,NVR,RTSP Relay,EasyRTSPClient can run in any platform ,such as x68/x64/Windows/Linux/Android/iOS/arm etc..,with flexible interface,EasyRTSPClient can fit almost all network IPCamera,very easy to use.简单、稳定、高效、易用的RTSPClient工具,支持Windows、Linux、ARM、Android、iOS等几乎所有平台,支持RTP Over TCP/UDP,支持断线重连,能够接入市面上99%以上的IPC,调用简单且成熟稳定!
Stars: ✭ 213 (-5.75%)
Mutual labels:  makefile
Turtledove
TURTLEDOVE
Stars: ✭ 217 (-3.98%)
Mutual labels:  makefile
Docs
Documentation for setting up OpenAPS
Stars: ✭ 204 (-9.73%)
Mutual labels:  makefile
Browserpass Native
Browserpass native client app
Stars: ✭ 209 (-7.52%)
Mutual labels:  makefile
Openwrt Dns Forwarder
DNS-Forwarder for OpenWrt
Stars: ✭ 215 (-4.87%)
Mutual labels:  makefile
Migrating To Cloud Native Application Architectures
《迁移到云原生应用架构》中文版 https://jimmysong.io/migrating-to-cloud-native-application-architectures/
Stars: ✭ 203 (-10.18%)
Mutual labels:  makefile
Mkdkr
Make + Docker + Shell = CI Pipeline
Stars: ✭ 225 (-0.44%)
Mutual labels:  makefile
React Barcode
A <Barcode/> component for use with React.
Stars: ✭ 210 (-7.08%)
Mutual labels:  makefile
Jumpdrive
Flash/Rescue SD Card image for PinePhone and PineTab
Stars: ✭ 217 (-3.98%)
Mutual labels:  makefile
Helmfiles
Comprehensive Distribution of Helmfiles for Kubernetes
Stars: ✭ 205 (-9.29%)
Mutual labels:  makefile
Pcat open source
PointCloud Annotation Tools, support to label object bound box, ground, lane and kerb
Stars: ✭ 209 (-7.52%)
Mutual labels:  makefile
How To Be A Good Programmer
I'm here to tell you some amazing stuff which teacher would never tell you.
Stars: ✭ 3,020 (+1236.28%)
Mutual labels:  makefile
Openwrt Pcap dnsproxy
Pcap_DNSProxy for OpenWrt/LEDE
Stars: ✭ 204 (-9.73%)
Mutual labels:  makefile
Quattroshapes
Stars: ✭ 222 (-1.77%)
Mutual labels:  makefile
Alpinewsl
Alpine Linux based WSL distribution. Supports multi-install. Lightest WSL distribution.
Stars: ✭ 203 (-10.18%)
Mutual labels:  makefile
Go Build Template
A Makefile/Dockerfile example for Go projects.
Stars: ✭ 2,625 (+1061.5%)
Mutual labels:  makefile
Rancid Git
DEPRECATED -- Strongly consider using the upstream, the version here is very out of date and a poor place to start from!
Stars: ✭ 225 (-0.44%)
Mutual labels:  makefile
Orac
Orac : virtual modular synth
Stars: ✭ 224 (-0.88%)
Mutual labels:  makefile
Golang Monorepo
An example of a golang-based monorepo.
Stars: ✭ 218 (-3.54%)
Mutual labels:  makefile

PerformancePaintTiming

Web developers require more information on page load performance in the wild. No single moment in time completely captures the "loading experience". To give developers insight into the loading experience, we propose a set of key progress metrics to capture the series of key moments during pageload which developers care about.

For detailed motivation, see the Why First Paint? doc.

First Paint (FP), is the first of these key moments, followed by First Contentful Paint (FCP). In the future, we may add additional metrics, such as First Meaningful Paint (FMP), and Time to Interactive (TTI).

Interface

We propose introducing the PerformancePaintTiming interface, extending the PerformanceEntry interface, to report the time to first paint and time to first contentful paint.

interface PerformancePaintTiming : PerformanceEntry {};

Entries will have a name of "first-paint" and "first-contentful-paint" respectively, and an entryType of "paint". startTime is the DOMHighResTimeStamp indicating when the paint occurred, and the duration will always be 0.

Definition

  • "first-paint" entries contain a DOMHighResTimeStamp reporting the time when the browser first rendered after navigation. This excludes the default background paint, but includes non-default background paint. This is the first key moment developers care about in page load – when the browser has started to render the page.

  • "first-contentful-paint" contain a DOMHighResTimestamp reporting the time when the browser first rendered any text, image (including background images), non-white canvas or SVG. This includes text with pending webfonts. This is the first time users could start consuming page content.

WIP: define processing algorithm and integration with HTML


The browser has performed a "paint" or "render" when it has converted the render tree to pixels on the screen.

More formally, we consider the browser to have "rendered" a document when it has updated "the rendering or user interface of that Document and its browsing context to reflect the current state". See the HTML spec's section on the event loop processing model – section 7.12.

The rendering pipeline is very complex, and the timestamp should be the latest timestamp the browser is able to note in this pipeline (best effort). Typically the time at which the frame is submitted to the OS for display is recommended for this API.

Usage

const observer = new PerformanceObserver(function(list) {
  const perfEntries = list.getEntries();
  for (const perfEntry of perfEntries) {
     // Process entries
     // report back for analytics and monitoring
     // ...
  }
});

// register observer for paint timing notifications
observer.observe({entryTypes: ["paint"]});

These entries will be buffered for the cases where PerformanceObserver is unable to register itself early enough on the page. For this case paint entries can be accessed as follows:

performance.getEntriesByType('paint');

Examples

These examples are hand annotated, based on the definitions given above.

Web page filmstrips with annotated first paint times.

Some rough bulk data can be seen here or here. This data was collected using a somewhat different definition than we're currently using – it includes white paints in first-paint and only looks at text and image paints for first-contentful-paint.

Why not add this to Navigation Timing?

This belongs outside Navigation Timing because Navigation Timing is spec'd as queueing the entry on document load end; however, FCP (or FMP in the future) may not have triggered at that point.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].