Skip to content

Commit

Permalink
fixes nav start argument in user timing check (#8348)
Browse files Browse the repository at this point in the history
  • Loading branch information
housseindjirdeh authored and Timer committed Aug 13, 2019
1 parent 8c19d78 commit 55ccb09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/next/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,11 @@ function markHydrateComplete () {

performance.mark('afterHydrate') // mark end of hydration

performance.measure('Next.js-before-hydration', null, 'beforeRender')
performance.measure(
'Next.js-before-hydration',
'navigationStart',
'beforeRender'
)
performance.measure('Next.js-hydration', 'beforeRender', 'afterHydrate')

clearMarks()
Expand Down

0 comments on commit 55ccb09

Please sign in to comment.