Skip to content

Commit

Permalink
Inline relayPaintMetrics function (#8954)
Browse files Browse the repository at this point in the history
This function was only used once. I missed it in review, but this should save us a few bytes.
  • Loading branch information
Timer authored Oct 3, 2019
1 parent 5929e9d commit 3762e75
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/next/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,7 @@ function renderReactElement (reactEl, domEl) {
} else {
ReactDOM.render(reactEl, domEl, markRenderComplete)
}
relayPaintMetrics()
}

function relayPaintMetrics () {
if (onPerfEntry) {
performance.getEntriesByType('paint').forEach(onPerfEntry)
}
Expand Down

0 comments on commit 3762e75

Please sign in to comment.