PageSourceSearch

https://betterdocs.co/wp-content/plugins/xspeed-pro/assets/rum-beacon.js?ver=1.2.5

js betterdocs.co collected 2026-09-24 15:26:16 UTC 1,821 bytes, 1 lines download raw bytes

1(function(){(function(){"use strict";var e=window.xspeedRum;if(!e||!e.endpoint||typeof PerformanceObserver>`u`)return;var t={},n=!1,r={lcp:[2500,4e3],fcp:[1800,3e3],cls:[.1,.25],inp:[200,500],ttfb:[800,1800]};function i(e,t){var n=r[e];return n?t<=n[0]?`good`:t<=n[1]?`needs-in`:`poor`:`good`}function a(e,n){typeof n!=`number`||!isFinite(n)||n<0||(t[e]={name:e,value:n,rating:i(e,n)})}function o(e,t,n){try{var r={type:e,buffered:!0};if(n)for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);var a=new PerformanceObserver(function(e){t(e.getEntries())});return a.observe(r),a}catch(e){return null}}o(`largest-contentful-paint`,function(e){var t=e[e.length-1];t&&a(`lcp`,t.startTime)}),o(`paint`,function(e){for(var t=0;t<e.length;t++)e[t].name===`first-contentful-paint`&&a(`fcp`,e[t].startTime)});var s=0;o(`layout-shift`,function(e){for(var t=0;t<e.length;t++)e[t].hadRecentInput||(s+=e[t].value);a(`cls`,s)});var c=0;o(`event`,function(e){for(var t=0;t<e.length;t++){var n=e[t].duration;n>c&&(c=n,a(`inp`,c))}},{durationThreshold:40});try{var l=performance.getEntriesByType(`navigation`)[0];l&&l.responseStart>0&&a(`ttfb`,l.responseStart)}catch(e){}function u(){if(!n){var r=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r.push(t[i]);if(r.length){n=!0;var a=JSON.stringify({url:location.href,device:matchMedia(`(max-width: 768px)`).matches?`mobile`:`desktop`,metrics:r});try{if(navigator.sendBeacon){var o=new Blob([a],{type:`application/json`});if(navigator.sendBeacon(e.endpoint,o))return}}catch(e){}try{fetch(e.endpoint,{method:`POST`,headers:{"Content-Type":`application/json`},body:a,keepalive:!0,credentials:`omit`}).catch(function(){})}catch(e){}}}}addEventListener(`visibilitychange`,function(){document.visibilityState===`hidden`&&u()}),addEventListener(`pagehide`,u)})()})();

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.