Skip to main content
\n","learningResourceType":"Practice problem","educationalLevel":"hard","about":"HTML","teaches":"the preload scanner","url":"https://journeyuncommon.com/quiz/question/68fcd67f-1351-4313-9954-18282723a23a","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
hardHTMLthe preload scannerSingle-choice MCQ

A browser's preload scanner runs as a secondary, lightweight tokenizer over the raw byte stream while the main HTML parser is blocked. Given this script that injects a stylesheet at runtime, why does the preload scanner fail to discover and fetch styles.css early?

<head> <script> const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'styles.css'; document.head.appendChild(l); </script> </head>