First Public Working Drafts: Paint Timing 1; Long Tasks API 1

The Web Performance Working Group has published two First Public Working Drafts today:

Paint Timing 1: This document defines an API that can be used to capture a series of key moments (First Paint, First Contentful Paint) during pageload which developers care about.

Long Tasks API 1: This document defines an API that web page authors can use to detect presence of “long tasks” that monopolize the UI thread for extended periods of time and block other critical tasks from being executed – e.g. reacting to user input.