1document.addEventListener("DOMContentLoaded", function() { 2 let paginationPage = document.referrer; 3 let paginationUrl = '/p/'; 4 let isHome = window.location.pathname === "/"; 5 6 const offset = 20; 7 8 let mainSite = document.querySelector('.site-main') 9 10 if(mainSite){ 11 12 let elementPosition = mainSite.getBoundingClientRect().top + window.pageYOffset + offset; 13 14 let navType = performance.getEntriesByType("navigation")[0]?.type; 15 16 if(paginationPage.includes(paginationUrl) && isHome && navType !== "reload"){ 17 //if(mainSite){ 18 setTimeout(function(){ 19 // mainSite.scrollIntoView() 20 21 window.scrollTo({ 22 top: elementPosition 23 }); 24 25 }, 333) 26 27 //} 28 } 29 } 30})
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.