未验证 提交 a04a5f01 编写于 作者: J Joe Haddad 提交者: GitHub

Remove extra DOM method call (#8394)

上级 cbe70e95
front @ b7e21d6d
Subproject commit b7e21d6de6110ac8a969b53dc9ad11d80aa49eba
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册