PageSourceSearch

https://coffee-labo.co.jp/wp-content/cache/min/1/wp-content/themes…/assets/js/hero-video.js?ver=1790126336

js coffee-labo.co.jp collected 2026-09-24 22:21:33 UTC 1,164 bytes, 6 lines download raw bytes

1(function(){'use strict';function init(){const video=document.querySelector('.hero__video');if(!video)return;const source=video.querySelector('source[data-src]');if(!source)return;const motion=window.matchMedia?window.matchMedia('(prefers-reduced-motion: reduce)'):null;const connection=navigator.connection;function sync(){const restricted=(motion&&motion.matches)||(connection&&connection.saveData);if(restricted||document.hidden){video.pause();if(restricted&&source.hasAttribute('src')){source.removeAttribute('src');video.load()}
2return}
3if(!source.hasAttribute('src')){source.setAttribute('src',source.getAttribute('data-src'));video.load()}
4const playback=video.play();if(playback&&playback.catch)playback.catch(function(){})}
5if(motion&&motion.addEventListener)motion.addEventListener('change',sync);else if(motion&&motion.addListener)motion.addListener(sync);if(connection&&connection.addEventListener)connection.addEventListener('change',sync);document.addEventListener('visibilitychange',sync);window.addEventListener('pageshow',sync);sync()}
6if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',init,{once:!0});else init()})()

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.