PageSourceSearch

https://myechoboard.com/assets/directExploreWarmup-CQGnUogR.js

js myechoboard.com collected 2026-09-24 13:47:08 UTC 2,094 bytes, 1 lines download raw bytes

1import{e}from"./app-BhliLHoU.js";import{S as t,a as r}from"./supabase-config-Bge368iX.js";const n=20,a=String("https://cdn.myechoboard.com").replace(/\/+$/,"");let o=null;function i(e){const t=(null==e?void 0:e.metadata)&&"object"==typeof e.metadata&&!Array.isArray(e.metadata)?e.metadata:{},r=String(t.thumbnail_url||(null==e?void 0:e.image_url)||"").trim();if(!r)return null;if(!a||!r.startsWith(`${a}/`))return r;if(r.includes("/cdn-cgi/image/"))return r;const n=r.slice(a.length).replace(/^\/+/,"");return`${a}/cdn-cgi/image/width=400,quality=70,format=auto/${n}`}function c(n={}){if(!function(t){if("undefined"==typeof window)return!1;if(document.documentElement.hasAttribute("data-native-bootstrap"))return!1;if(e())return!1;const r=window.location.pathname.replace(/\/+$/,"")||"/";if(t)return!0;const n=new URLSearchParams(window.location.search),a=Array.from(n.keys()).every(e=>"_r"===e||"_cb"===e||"_ra"===e);return"/explore"===r&&a}(!0===n.allowOffRoute))return null;const a=window.__ECHO_DIRECT_EXPLORE_WARMUP__;return a?(o=a,o):(o||(o=async function(){const e=new AbortController,n=window.setTimeout(()=>e.abort(),4e3);try{const n=new URLSearchParams({apikey:t,p_limit:String(20)}),a=await fetch(`${r}/rest/v1/rpc/get_public_explore_echo_feed_keyset_v2?${n}`,{method:"GET",signal:e.signal});if(!a.ok)throw new Error(`Explore bootstrap feed failed: ${a.status}`);const o=await a.json(),c=Array.isArray(o)?o:[];return function(e){if("undefined"==typeof document||0===e.length)return;const t=window.matchMedia("(max-width: 767px)").matches?1:2,r=Array.from(new Set(e.map(i).filter(e=>Boolean(e)))).slice(0,t);for(const n of r){if(document.querySelector(`link[data-echo-direct-explore-image="${CSS.escape(n)}"]`))continue;const e=document.createElement("link");e.rel="preload",e.as="image",e.href=n,e.setAttribute("fetchpriority","high"),e.dataset.echoDirectExploreImage=n,document.head.appendChild(e)}}(c),c}finally{window.clearTimeout(n)}}(),o.catch(()=>{})),o)}function l(){return o}export{n as DIRECT_EXPLORE_LIMIT,l as getDirectExploreWarmupPromise,c as startDirectExploreWarmup};

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.