---
url: "https://web.dev/articles/preload-scanner"
titulek: "Don't fight the browser preload scanner | Articles | web.dev"
h1: "Don't fight the browser preload scanner Stay organized with collections Save and categorize content based on your preferences."
popis: "Find out what the browser preload scanner is, how it helps performance, and how you can stay out of its way."
jazyk: "en"
kanonicka: "https://web.dev/articles/preload-scanner"
drobecky: ["Articles", "Don't fight the browser preload scanner"]
zdroj: "live"
wayback_snapshot: ""
stazeno: "2026-09-13 23:13:39"
znaku: 24390
slov: 3677
kodovani: "iso-8859-2"
sha256: "6edb096a227583a8d4bfe69921d09f1ba6fc5dd8058a7c23e443c1d26a1d040d"
---
Don't fight the browser preload scanner
Stay organized with collections
Save and categorize content based on your preferences.
Find out what the browser preload scanner is, how it helps performance, and how you can stay out of its way.
Jeremy Wagner
One overlooked aspect of optimizing page speed involves knowing a bit about browser internals. Browsers make certain optimizations to improve performance in ways that we as developers can't—but only so long as those optimizations aren't unintentionally thwarted. One internal browser optimization to understand is the browser preload scanner. This post will cover how the preload scanner works—and more importantly, how you can avoid getting in its way. What's a preload scanner? Every browser has a primary HTML parser that [tokenizes](https://en.wikipedia.org/wiki/Lexical_analysis#Tokenization) raw markup and processes it into [an object model](https://developer.mozilla.org/docs/Web/API/Document_Object_Model). This all merrily goes on until the parser pauses when it finds a [blocking resource](https://developer.chrome.com/docs/lighthouse/performance/render-blocking-resources), such as a stylesheet loaded with a `` element, or script loaded with a `` Injected scripts are [`async`](https://developer.mozilla.org/docs/Web/HTML/Element/script#attr-async) by default, so when this script is injected, it will behave as if the `async` attribute was applied to it. That means it will run as soon as possible and not block rendering. Sounds optimal, right? Yet, if you presume that this inline `` This is the result: **Fig. 6:** A WebPageTest network waterfall chart of [a web page](https://preload-scanner-fights.glitch.me/inline-async-script.html) run on Chrome on a mobile device over a simulated 3G connection. The page contains a single stylesheet and a single `async` `