1const collect = (action) => { 2 if (document.readyState === 'loading') { 3 document.addEventListener('DOMContentLoaded', function () { 4 sendAction(action); 5 }); 6 } else { 7 sendAction(action); 8 } 9} 10 11const sendAction = (action) => { 12 var referrer = document.referrer; 13 fetch('/collect.aspx', { 14 method: 'POST', 15 headers: { 16 'Content-Type': 'application/json' 17 }, 18 body: JSON.stringify({ 19 referrer: referrer, 20 action: action 21 }) 22 }); 23} 24
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.