1; 2const debounce = (fn) => { 3 let frame; 4 return (...params) => { 5 6 if (frame) { 7 cancelAnimationFrame(frame); 8 } 9 10 frame = requestAnimationFrame(() => { 11 fn(...params); 12 }); 13 } 14}; 15 16const storeScroll = () => { 17 document.documentElement.dataset.scroll = window.scrollY; 18} 19 20document.addEventListener('scroll', debounce(storeScroll), { passive: true }); 21storeScroll();
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.