Skip to content

Commit ab60166

Browse files
committed
Move the Long Tasks counter to the bottom
1 parent aee2533 commit ab60166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/Interaction/LongTask.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ To determine when long tasks happen, you can use [PerformanceObserver](https://d
1010
try {
1111
const po = new PerformanceObserver((list) => {
1212
const numLongTasks = list.getEntries().length
13-
console.log(`%cNum. Long Tasks: ${numLongTasks}`,'color: #FF4E42; font-weight: bold')
1413
for (const entry of list.getEntries()) {
1514
console.table(entry.toJSON());
1615
}
16+
console.log(`%cNum. Long Tasks: ${numLongTasks}`,'color: #FF4E42; font-weight: bold')
1717
});
1818
po.observe({ type: "longtask", buffered: true });
1919
} catch (e) {

0 commit comments

Comments
 (0)