Skip to content

Commit

Permalink
Update LCP test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmocny committed Dec 6, 2024
1 parent 8b06048 commit 4083490
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sandbox/lcp-with-inline-children/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
<script>
const observer = new PerformanceObserver(list => {
for (let entry of list.getEntries()) {
console.log(entry.entryType, entry.size, entry.element, entry);
const size = entry.size || entry.intersectionRect.height * entry.intersectionRect.width;
console.log(entry.entryType, size, entry.element, entry);
}
})
observer.observe({ type: 'element', buffered: true });
Expand Down

0 comments on commit 4083490

Please sign in to comment.