Skip to the content
searchboar.

Crawling and indexing

Preload: meaning, examples and practical use

Preload is a browser hint that can initiate fetching an important resource before its normal discovery point. It helps when an early-needed file would otherwise be found late; excessive preloading can compete with other critical resources.

Also known as: Erőforrás-előtöltés

At a glance

  • Preload only resources genuinely needed early.
  • The resource type and eventual request need to match.
  • Preload fetches a resource; it does not by itself display an image or apply a stylesheet.
On this page
One important file using a priority lane while other resources follow normally.
Conceptual illustration: one important file using a priority lane while other resources follow normally.

Which delay can it reduce?

A main image discovered only through a stylesheet or late JavaScript can start downloading late. Preload can provide an earlier hint. web.dev's guide explains early discovery of critical resources. A file already discovered promptly may gain little.

What needs to be specified correctly?

The URL, resource type and relevant request properties must fit the eventual use. If the hint and later request do not match, the browser may not reuse the download. Responsive images need particular care so the wrong size is not fetched early.

Example: a mobile article image

Imagine a page displaying a smaller image on phones while its preload always fetches the large desktop file. Visitors can receive unnecessary data. Review responsive image selection and preloading together rather than treating them as independent settings.

When can it make things worse?

Marking every image and font as critical makes them compete with resources that really matter. Lazy loading serves a different purpose for lower-page content. Validate choices against the network timeline and meaningful content appearing, not merely the presence of an attribute. A hint is not proof of an improved experience.

Sources

  1. web.dev: Preload critical assets