What it means
A browser running without its usual graphical interface, used for executing scripts, interacting with pages, taking screenshots or running automated tests.
Running headless describes how the browser operates, not "just downloads HTML". The browser can still load resources, execute JavaScript, and maintain page state. Specific capabilities should also be subject to the engine and version used.
It's suitable for dynamic content, interactivity, and visual output tasks, but generally requires more running resources than a simple HTTP request. Whether to use a headless browser should be determined by the target page and output requirements.
Focused check 2026-11-25: Chrome unified headful and headless modes from version 112; since 132.0.6793.0, the old implementation is available only as standalone chrome-headless-shell. Hypothetical comparison: current Chrome with --headless and a separately installed old shell are different executables. Record the actual binary and version when diagnosing differences; the headless label does not establish identical builds or features across automation tools.
In a scraping task
Automated tasks for dynamic pages
Let the browser open a page, fill in the filter criteria, wait for the results, and export the target fields, all without displaying a desktop window. If the task only requires a piece of text in the initial HTML, this step is not necessarily required.
Common misconceptions
- Headless does not mean that JavaScript cannot be executed, nor does it mean that there is no browser state.
- Headless mode by itself does not guarantee that requests will not be restricted or recognized as automatic access.
References
Organized by Northleaf Studio. The source link retains the original address to facilitate continued reading.
- Chrome for Developers:Headless mode
Original data · Verified on 2026-11-19
- Chrome for Developers: current headless and old shell
Primary sources · Checked 2026-11-25