Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
12e0db04
Unverified
Commit
12e0db04
authored
May 23, 2020
by
Joe Haddad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linting
parent
de2363bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
index.js
packages/next/client/index.js
+1
-1
No files found.
packages/next/client/index.js
View file @
12e0db04
...
@@ -55,7 +55,7 @@ const register = ([r, f]) => pageLoader.registerPage(r, f)
...
@@ -55,7 +55,7 @@ const register = ([r, f]) => pageLoader.registerPage(r, f)
if
(
window
.
__NEXT_P
)
{
if
(
window
.
__NEXT_P
)
{
// Defer page registration for another tick. This will increase the overall
// Defer page registration for another tick. This will increase the overall
// latency in hydrating the page, but reduce the total blocking time.
// latency in hydrating the page, but reduce the total blocking time.
window
.
__NEXT_P
.
map
(
p
=>
setTimeout
(()
=>
register
(
p
),
0
))
window
.
__NEXT_P
.
map
(
(
p
)
=>
setTimeout
(()
=>
register
(
p
),
0
))
}
}
window
.
__NEXT_P
=
[]
window
.
__NEXT_P
=
[]
window
.
__NEXT_P
.
push
=
register
window
.
__NEXT_P
.
push
=
register
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment