Skip to main content
","learningResourceType":"Practice problem","educationalLevel":"hard","about":"HTML","teaches":"preload scanner","url":"https://journeyuncommon.com/quiz/question/c89ec624-6e63-4e76-ac49-9b2ed68d9d64","inLanguage":"en","isAccessibleForFree":true,"provider":{"@id":"https://journeyuncommon.com/#organization"},"isPartOf":{"@type":"WebSite","@id":"https://journeyuncommon.com/#website","name":"Journey Uncommon","url":"https://journeyuncommon.com"}}
Journey Uncommon Logo
JourneyUncommon
hardHTMLpreload scannerSingle-choice MCQ

An image's real URL is only set by JavaScript (`el.src = ...`) while the static HTML uses a data attribute. Why does this defeat the preload scanner even though the URL string is technically present in the markup?

<img data-src="hero.jpg" class="lazy"> <script src="lazyload.js"></script>