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
a04a5f01
Unverified
Commit
a04a5f01
authored
Aug 16, 2019
by
Joe Haddad
Committed by
GitHub
Aug 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove extra DOM method call (#8394)
parent
cbe70e95
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
front
examples/front
+1
-0
page-loader.js
packages/next/client/page-loader.js
+3
-2
No files found.
front
@
b7e21d6d
Subproject commit b7e21d6de6110ac8a969b53dc9ad11d80aa49eba
packages/next/client/page-loader.js
View file @
a04a5f01
...
...
@@ -233,8 +233,9 @@ export default class PageLoader {
// n.b. If preload is not supported, we fall back to `loadPage` which has
// its own deduping mechanism.
if
(
document
.
querySelector
(
`link[rel="preload"][href^="
${
url
}
"]`
)
||
document
.
querySelector
(
`script[data-next-page="
${
route
}
"]`
)
document
.
querySelector
(
`link[rel="preload"][href^="
${
url
}
"], script[data-next-page="
${
route
}
"]`
)
)
{
return
}
...
...
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