PageSourceSearch

https://blog.tomayac.com/js/performance-metrics.264691caf4.mjs

js tomayac.com collected 2026-09-24 10:04:40 UTC 915 bytes, 1 lines download raw bytes

1export const render=entry=>{($=>{$(".performance-metrics").hidden=false;switch(entry.type){case"lcp":const lcp=$(".lcp");if(!lcp.hidden){return}lcp.hidden=false;const lcpElement=$(".lcp-element");lcpElement.textContent=`${/([^>]*)/.exec(entry.element.outerHTML)[0].replace(/</,"")}`;$(".lcp-link").onclick=function(){entry.element.classList.toggle("largest-contentful-paint")};$(".lcp-time").textContent=(entry.value/1e3).toFixed(3);break;case"fid":const fid=$(".fid");if(!fid.hidden){return}fid.hidden=false;$(".fid-type").textContent=entry.name;$(".fid-duration").textContent=(entry.value/1e3).toFixed(3);break;case"cls":const cls=$(".cls");if(!cls.hidden){return}cls.hidden=false;$(".cls-score").textContent=entry.value.toFixed(3);break;case"fcp":const fcp=$(".fcp");if(!fcp.hidden){return}fcp.hidden=false;$(".fcp-time").textContent=(entry.value/1e3).toFixed(3);break}})(document.querySelector.bind(document))};

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.