S

Shadow DOM

The Shadow DOM is a browser feature that allows developers to create a hidden, encapsulated DOM tree within a normal element. This "shadow" tree's styles and scripts are isolated from the main page. Speed Kit uses this technology to safely pre-render a predicted page in the background. By rendering the page inside a Shadow DOM, it ensures that the pre-rendered page's CSS and JavaScript do not conflict with or disrupt the page the user is currently viewing.

All terms
Fabian Krumbholz
Fabian Krumbholz
April 8, 20261 min read

Related web performance terms

How fast is your website?