1(function(){const btn=document.getElementById('recipes-load-more');const wrap=document.getElementById('postWrap');const list=document.getElementById('tiles');if(!btn||!wrap||!list)return;const maxPages=parseInt(wrap.dataset.maxPages||wrap.getAttribute('data-max-pages'),10)||1;const catSlug=wrap.dataset.cat||'';async function load(page){btn.disabled=true;const original=btn.textContent;btn.textContent='Loadingâ¦';try{const url=`/wp-json/dilusso/v1/recipes?page=${page}`+(catSlug?`&cat=${encodeURIComponent(catSlug)}`:'');const res=await fetch(url);const data=await res.json();const tmp=document.createElement('div');tmp.innerHTML=data.html||'';Array.from(tmp.children).forEach(n=>list.appendChild(n));if(data.nextPage){btn.dataset.nextPage=String(data.nextPage);btn.disabled=false;btn.textContent=original;if(catSlug){history.replaceState({},'',`/archives/recipes/${catSlug}/page/${page}/`);}else{history.replaceState({},'',`/recipes/page/${page}/`);}}else{if(catSlug){history.replaceState({},'',`/archives/recipes/${catSlug}/page/${page}/`);}else{history.replaceState({},'',`/recipes/page/${page}/`);} 2btn.remove();}}catch(e){console.error(e);btn.disabled=false;btn.textContent=original;}} 3btn.addEventListener('click',function(e){e.preventDefault();const next=parseInt(btn.dataset.nextPage,10);if(!isNaN(next))load(next);});})();
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.