Skip to content

Commit

Permalink
Show more interaction to next paint info (#4050)
Browse files Browse the repository at this point in the history
* Show more inp info
  • Loading branch information
soulgalore authored Jan 7, 2024
1 parent cbd9c47 commit 284199f
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions lib/plugins/html/templates/url/metrics/inp.pug
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
if browsertime.pageinfo && browsertime.pageinfo.interactionToNextPaintInfo!== undefined
a#interactionToNextPaint
h3 Interaction to Next Paint
p Interaction to Next Paint (INP) is a metric that try to measure responsiveness. It's useful if you are testing user journeys Read more about
p Interaction to Next Paint (INP) is a metric that try to measure responsiveness. It's useful if you are testing user journeys. Read more about
a(href='https://web.dev/inp/') Interaction to Next Paint
| .
.row
p The measured latency was #{h.time.ms(browsertime.pageinfo.interactionToNextPaintInfo.latency)}. And the events that contributed to the latency was:
ul
each entry in browsertime.pageinfo.interactionToNextPaintInfo.entries
li #{entry.name} - #{h.time.ms(entry.duration)}
p The measured latency was #{h.time.ms(browsertime.pageinfo.interactionToNextPaintInfo.latency)}.
table
if timings.largestContentfulPaint.tagName
tr
td
b Event type
td #{browsertime.pageinfo.interactionToNextPaintInfo.eventType}
tr
td
b Element type
td #{browsertime.pageinfo.interactionToNextPaintInfo.tagName}
tr
td
b Element class name
td #{browsertime.pageinfo.interactionToNextPaintInfo.className}
tr
td
b Event target
td #{browsertime.pageinfo.interactionToNextPaintInfo.eventTarget}
tr
td
b Load state when the event happened
td #{browsertime.pageinfo.interactionToNextPaintInfo.loadState}

0 comments on commit 284199f

Please sign in to comment.