Unverified Commit 3762e757 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Inline `relayPaintMetrics` function (#8954)

This function was only used once. I missed it in review, but this should save us a few bytes.
parent 5929e9da
......@@ -249,10 +249,7 @@ function renderReactElement (reactEl, domEl) {
} else {
ReactDOM.render(reactEl, domEl, markRenderComplete)
}
relayPaintMetrics()
}
function relayPaintMetrics () {
if (onPerfEntry) {
performance.getEntriesByType('paint').forEach(onPerfEntry)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment