mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-08 07:29:08 +03:00
Comment out some debugging logs.
This commit is contained in:
parent
4b9b3a5a3b
commit
21aa05cc35
4
index.js
4
index.js
@ -94,10 +94,10 @@ module.exports = function pagesInit(
|
||||
function prefetchIfNeeded(/** @type {HTMLAnchorElement} */ target) {
|
||||
if (target.host === window.location.host) {
|
||||
if (prefetchedPages.includes(target.pathname)) {
|
||||
console.log("Already preloaded", target.href);
|
||||
// console.log("Already preloaded", target.href);
|
||||
} else {
|
||||
prefetchedPages.push(target.pathname);
|
||||
console.log("Preloading...", target.pathname);
|
||||
// console.log("Preloading...", target.pathname);
|
||||
const link = document.createElement("link");
|
||||
link.setAttribute("rel", "prefetch");
|
||||
link.setAttribute("href", origin + target.pathname + "/content.txt");
|
||||
|
Loading…
Reference in New Issue
Block a user