PageSourceSearch

https://www.larepublica.net/static/dist/social-ux/1342.d259f4676588fdd92fff.bundle.mjs

js larepublica.net collected 2026-09-24 08:54:22 UTC 10,275 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksocialUX=self.webpackChunksocialUX||[]).push([[1342],{1342:function(e,t,n){n.r(t),n.d(t,{default:function(){return I}});var o=n(3964);function r(e,t,n,o,r){return{title:e,priority:t,description:n,items:o,itemProperties:r}}function i(e){return[`\`${e}\``,`"${e}"`,`'${e}'`,`<${e}`]}const s=[...i("script"),...i("link"),...i("img"),...i("iframe"),...i("style"),".createElement(","fetch(","loadExternalScript","loadExternalStylesheet","new XMLHttpRequest"];function l(e){return!!s.some(e.includes.bind(e))}function a(e,t,n){return Array.from(e).reduce(t,n)}const c=["text/javascript","application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript"];function u(e){if(!e.type)return!0;const t=e.type.toLowerCase();return!e.type||!!c.some(t.includes.bind(t))}function f(e){if(e.src)return!0;if(!e.textContent)return!1;const{textContent:t}=e;return l(t)}function d(e){return!!e.closest("noscript")}function h(e){const{loading:t,src:n}=e;return!(d(e)||t&&"lazy"===t||!n||n.includes("svg xmlns='http://www.w3.org/2000/svg' viewBox="))}function m(e){return e.src&&!d(e)&&"lazy"!==e.loading}function p(e){return!d(e)&&(e.autoplay||"none"!==e.preload)}function g(e){return e.toString()}function y(e,t){if(!t)return e;let n=0,o=0;for(;-1!==n&&o<100;){if(n=t.indexOf("url(",n),n>=0){n+=4;const o=t.substring(n,t.indexOf(")",n));e.push(o.replace(/"/g,"").replace(/'/g,""))}o++}return e}function w(e,t){if(t instanceof CSSStyleRule||t instanceof CSSKeyframeRule){const{background:n,backgroundImage:o,listStyleImage:r,content:i,cursor:s,borderImageSource:l,offsetPath:a,maskImage:c}=t.style;return[n,o,r,i,s,l,a,c].reduce(y,e)}return t instanceof CSSMediaRule||t instanceof CSSKeyframesRule?a(t.cssRules,w,e):e}function S(e,t){const{sheet:n}=t;return a(n.cssRules,w,e)}function b([e,t]){return Boolean(t)}function v(e,t){if(t instanceof CSSStyleRule||t instanceof CSSKeyframeRule){const{style:n,selectorText:o}=t,{top:r,left:i,right:s,bottom:l,position:a}=n,c=Object.entries({top:r,left:i,right:s,bottom:l,position:a}).filter(b);if(c.length>0)return[...e,{selectorText:o,...Object.fromEntries(c)}]}else if(t instanceof CSSMediaRule||t instanceof CSSKeyframesRule)return a(t.cssRules,v,e);return e}function C(e,t){const{sheet:n}=t;return a(n.cssRules,v,e)}const x=window.innerHeight||document.documentElement.clientHeight,k=window.innerWidth||document.documentElement.clientWidth;function T(e,t){if(t===document.body||!t.parentElement||t.parentElement===document.body||0===t.textContent.trim().length)return e;const n=t.parentElement;return function(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=x&&t.right<=k}(n)?[...e,n]:e}function A(e,t){const n=window.getComputedStyle(t).getPropertyValue("font-family"),o=window.getComputedStyle(t).getPropertyValue("font-weight");return n.split(",").reduce((function(e,t){const n=`${t}:${o}`;return n in e||(e[n]=1),e}),e)}function E(e,t){if(t instanceof CSSMediaRule||t instanceof CSSKeyframesRule)return Array.from(t.cssRules).reduce(E,e);if(t instanceof CSSFontFaceRule){const{fontFamily:n,fontWeight:o,src:r}=t.style,i=function(e){let t=e.indexOf("url(");return t>=0?(t+=4,e.substring(t,e.indexOf(")",t)).replace(/"/g,"").replace(/'/g,"")):null}(r);return i?{...e,[`${n}:${o}`]:{fontFamily:n,fontWeight:o,url:i}}:e}return e}function R(e,t){const{sheet:n}=t;return Array.from(n.cssRules).reduce(E,e)}const j=window.innerHeight||document.documentElement.clientHeight,z=window.innerWidth||document.documentElement.clientWidth;function q(e){return!function(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.top<=j&&t.left<=z&&null!==e.offsetParent}(e)}function L(e){return`article[elid="${e.getAttribute("elid")}"]`}const P=[function(e,t){const n=Array.from(e.querySelectorAll("script:not(.rm-i-script)")).filter(u),o=n.filter(f),i=n.filter((function(e){return!o.includes(e)}));return[r("Dangerous loose scripts",4,"The following scripts include code that will make additional HTTP calls, that can dynamically include more javascript or iframes, this is actively hurtful for LCP",o,["src","text"]),r("Loose scripts",2,"The following scripts are loose on the page, performance can be improved by moving them to the Javascript element on l&d",i,["text"])]},function(e,t){const n=Array.from(e.querySelectorAll("img:not(.rm-hero-media)")).filter(h),o=Array.from(e.querySelectorAll("iframe")).filter(m),i=Array.from(e.querySelectorAll("video:not(.rm-hero-media)")).filter(p);return[r("Eager images",3,"The following images are loading eagerly thus fighting for network resources, please lazy load them",n,["src","id","className"]),r("Eager iframes",4,"The following iframes are loading eagerly thus fighting for network resources, they should be lazy loaded",o,["src","id","className"]),r("Eager videos",4,"The following videos are loading eagerly thus fighting for network resources, please lazy load them",i,["id","className","poster"])]},function(e,t){return[r("Dangerous javascript on load blocking queue",3,"There is dangerous javascript on the load blocking priority. These functions invoke code that can dynamically insert elements that are dangerous for LCP or FID. The load blocking queue should be used for safe operations such as adding event listeners, defining ad slots (without calling the ad provider library) or providing basic user interaction",(window.REBELMOUSE_TASKS_QUEUE||[]).map(g).filter(l),[])]},function(e,t){const n=Array.from(e.querySelectorAll("style:not(.rm-i-styles)")),o=a(e.querySelectorAll("style"),S,[]),i=Array.from(e.querySelectorAll('link[rel="stylesheet"]')),s=a(e.querySelectorAll("style"),C,[]);return[r("Loose style tags",1,"Please move all CSS related code to the Style element on l&d tool",n,["textContent"]),r("Resource loading with CSS",2,"The following resources are being downloaded through CSS' url function, if possibly lazy load these features unless they are intended as LCP element. Aditionally if an image is being embed encoded with the data: prefix, it may be better to host it somewhere and then serve it as an URL",o,[]),r("Potentially dangerous selectors",1,"The following CSS selectors are modifying the position, top, left, right and bottom properties. This can have a negative impact on CLS if done dynamically without user interaction. Please review the implementation and make sure these styles are being applied without hurting CLS\nTip: You can use css transform to achieve similar results without hurting CLS",s,[]),r("Eagerly loaded external CSS",3,"The following styleets are being loaded in a blocking fashion, this affects both LCP and FID, please inline the styles that are needed for the initial render of the page and lazy load everything else",i,["href"])]},function(e,t){const n=function(){const e=document.createTreeWalker(document.body,NodeFilter.SHOW_TEXT),t=[];let n=e.currentNode;for(;n;)t.push(n),n=e.nextNode();return t}().reduce(T,[]).reduce(A,{}),o=function(e){return a(e.querySelectorAll("style"),R,{})}(e),i=function(e,t){return Object.entries(t).reduce((function(t,n){const[o,r]=n;return o in e?t:[...t,r]}),[])}(n,o),s=function(e,t,n){const o=Array.from(e.querySelectorAll('link[rel="preload"][as="font"]'));return Object.entries(n).reduce((function(e,n){const[r,i]=n;return r in t&&(s=i,o.some((function(e){return e.href===s})))?void 0:e;var s}),[])}(e,n,o);return[r("Eagerly loaded font is unused",3,"The following font was declared on the page's stylesheet yet it is not used on the first viewport, this means it can be lazy loaded",i,[]),r("Viewport fonts is not preloaded",3,"The following fonts are used in the first viewport yet they are not preloaded, this can affect LCP",s,[])]},function(e,t){const n=Array.from(e.querySelectorAll("article")).map(L).join(",");return[r("Loaded posts outside of the viewport",2,"The following posts were served from the server yet they are not in view. They should be lazy loaded",Array.from(document.querySelectorAll(n)).filter(q),["elid","className"])]},function(e,t){const n=new Blob([t]).size/1024;return n<400?[]:r("Uncompressed page size in kb is too big",2,"The page size once uncompressed is too big, consider lazy loading more resources or moving scripts that are too big to their own file",[{html:t,pageSize:n}],[])},function(e,t,n){const o=Object.fromEntries(n.entries());return[r("Request not served from Telaria",2,"This request was not served from telaria. Please check if this site is scheduled to be enabled or if there are any issues prevenging it",function(e){const{via:t}=e;return function(e){return!!e&&e.toLowerCase().includes("warehouse")}(t)?[]:[{via:t||""}]}(o),[]),r("Headers information",0,"This are the headers used in the response for this page",o,[])]}],O=new DOMParser,$={0:"font-size: 1em; color: CornflowerBlue;",1:"font-size: 1.5em; color: yellow;",2:"font-size: 2em; color: orange;",3:"font-size: 2.5em; color: red;",4:"font-size: 3em; color: red; background: black;"};function H(e){const{title:t,priority:n,description:o,items:r,itemProperties:i}=e,s=r.length;0!==s&&(s<=50?console.group(`%c${t}`,$[n]):console.groupCollapsed(`%c${t}`,$[n]),console.log(o),console.table(r,i),console.groupEnd())}function W(e,t){return t.priority-e.priority}function B(e){console.clear(),console.log("%cHighest priority",$[4]),console.log("%cHigh priority",$[3]),console.log("%cmedium priority",$[2]),console.log("%cLow priority/Validate Implementation",$[1]),console.log("%cDebug information",$[0]),e.sort(W).forEach(H)}const F=(0,o.A)((function(e,t,n,o){return o(e,t,n)}));function I(e){console.log("%cCWV checklist is being prepared, please do not scroll away from the first viewport and make sure you are in a private window as a logged out user","font-size: 2em; color: CornflowerBlue; background: black;"),async function(e){const t=await fetch(e),n=await t.text();return[O.parseFromString(n,"text/html"),n,t.headers]}(document.location.href).then((function([e,t,n]){return P.flatMap(F(e,t,n))})).then(B)}}}]);
2//# sourceMappingURL=1342.d259f4676588fdd92fff.bundle.mjs.map

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.