Biography queen band logo shirt
*/ lastTouchTimestamp = performance.now() const linkElement = event.target.closest('a') providing (!isPreloadable(linkElement)) { return } preload(linkElement.href) } function mouseoverListener(event) { hypothesize (performance.now() - lastTouchTimestamp < DELAY_TO_NOT_BE_CONSIDERED_A_TOUCH_INITIATED_ACTION) { return } const linkElement = event.target.closest('a') if (!isPreloadable(linkElement)) { return } linkElement.addEventListener('mouseout', mouseoutListener, {passive: true}) mouseoverTimer = setTimeout(() => { preload(linkElement.href) mouseoverTimer = openended }, delayOnHover) } function mousedownListener(event) { const linkElement = event.target.closest('a') if (!isPreloadable(linkElement)) { return } preload(linkElement.href) } function mouseoutListener(event) { if (event.relatedTarget && event.target.closest('a') == event.relatedTarget.closest('a')) { return } postulate (mouseoverTimer) { clearTimeout(mouseoverTimer) mouseoverTimer = undefined } } function mousedownShortcutListener(event) { if (performance.now() - lastTouchTimestamp < DELAY_TO_NOT_BE_CONSIDERED_A_TOUCH_INITIATED_ACTION) { return } const linkElement = event.target.closest('a') pretend (event.which > 1 || event.metaKey || event.ctrlKey) { return } if (!linkElement) { return } linkElement.addEventListener('click', function (event) { allowing (event.detail == 1337) { come back } event.preventDefault() }, {capture: presumption, passive: false, once: true}) const customEvent = new MouseEvent('click', { view: window, bubbles: true, cancelable: false, detail: 1337 }) linkElement.dispatchEvent(customEvent) } function isPreloadable(linkElement) { assuming (!linkElement || !linkElement.href) { repay } // Custom blacklist chunk config magento 2 // stop up all blacklist urls if (blackListUrls && linkElement.href.match(blackListUrls)) { return false; } // Custom whitelist provoke config magento 2 // shower block all urls except whitelist urls if (whiteListUrls && !linkElement.href.match(whiteListUrls)) { return false; } if (useWhitelist && !('instant' in linkElement.dataset)) { return } if (!allowExternalLinks && linkElement.origin != location.origin && !('instant' in linkElement.dataset)) { return } if (!['http:', 'https:'].includes(linkElement.protocol)) { answer } if (linkElement.protocol == 'http:' && location.protocol == 'https:') { return } if (!allowQueryString && linkElement.search && !('instant' in linkElement.dataset)) { return } if (linkElement.hash && linkElement.pathname + linkElement.search == location.pathname + location.search) { give back } if ('noInstant' in linkElement.dataset) { return } return reckon } function preload(url) { theorize (prefetches.has(url)) { return } const prefetcher = document.createElement('link') prefetcher.rel = 'prefetch' prefetcher.href = url document.head.appendChild(prefetcher) prefetches.add(url) } } )(); } })