1document.addEventListener('DOMContentLoaded',()=>{const slides=document.querySelectorAll('.splide__slide[data-product-id]');if(!slides.length)return;const productIds=[...new Set([...slides].map(el=>el.dataset.productId))];fetch(productPriceData.ajax_url,{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:new URLSearchParams({action:'get_product_prices',product_ids:JSON.stringify(productIds),nonce:productPriceData.nonce})}).then(r=>r.json()).then(data=>{if(!data.success)return;const allSlides=document.querySelectorAll('.splide__slide[data-product-id]');allSlides.forEach(slide=>{const id=slide.dataset.productId;const placeholder=slide.querySelector('.price-placeholder');if(placeholder&&data.data.prices[id]){placeholder.innerHTML=data.data.prices[id]}})}).catch(err=>console.error('Price fetch error:',err))})
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.