Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions instantpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@ function isPreloadable(anchorElement) {
return
}

// If the href only contains "#", browsers will return empty string instead of "#" when checking anchorElement.hash,
// so we have to do an explicit check for it.
if (anchorElement.getAttribute('href') === '#') {
return;
}

if (anchorElement.protocol == 'http:' && location.protocol == 'https:') {
return
}
Expand Down
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.