Skip to content

Commit 9a188d1

Browse files
authored
Adds guidance around content-visibility per INP. (GoogleChrome#9162)
1 parent 6fd4734 commit 9a188d1

File tree

1 file changed

+10
-1
lines changed
  • src/site/content/en/blog/content-visibility

1 file changed

+10
-1
lines changed

src/site/content/en/blog/content-visibility/index.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ subhead: Improve initial load time by skipping the rendering of offscreen conten
44
authors:
55
- una
66
- vladimirlevin
7+
- jlwagner
78
date: 2020-08-05
8-
updated: 2021-03-09
9+
updated: 2022-12-05
910
hero: image/admin/lrAkOWYTyGkK2BKXoF9y.jpg
1011
alt: Stylized photo of a half-hidden person.
1112
description: >
@@ -281,6 +282,14 @@ In an experiment, Facebook engineers observed an up to 250ms improvement in
281282
navigation times when going back to previously cached views.
282283
{% endAside %}
283284

285+
## Effects on Interaction to Next Paint (INP)
286+
287+
[INP](/inp/) is a metric that evaluates a page's ability to be reliably responsive to user input. Responsiveness can be affected by any excessive amount of work that occurs on the main thread, including rendering work.
288+
289+
Whenever you can reduce rendering work on any given page, you're giving the main thread an opportunity to respond to user inputs more quickly. This includes rendering work, and using the `content-visiblity` CSS property where appropriate can reduce rendering work—especially during startup, when most rendering and layout work is done.
290+
291+
Reducing rendering work has a direct effect on INP. When users attempt to interact with a page that uses the `content-visibility` property properly to defer layout and rendering of offscreen elements, you're giving the main thread a chance to respond to critical user-visible work. This can improve your page's INP in some situations.
292+
284293
## Conclusion
285294

286295
`content-visibility` and the CSS Containment Spec mean some exciting performance

0 commit comments

Comments
 (0)