Public BetaVitalSentinel is now live! Read the announcement
Performance

What is Preload?

A browser hint that tells the browser to fetch a resource early because it will be needed soon, improving load performance.

Preloading tells the browser to fetch resources earlier than it normally would. This is useful for critical resources that are discovered late in the loading process.

Preload syntax

<link rel="preload" href="critical.css" as="style">
<link rel="preload" href="hero.jpg" as="image">
<link rel="preload" href="font.woff2" as="font" crossorigin>

The as attribute

Specifies the resource type:

  • style - CSS stylesheets
  • script - JavaScript files
  • font - Web fonts
  • image - Images
  • fetch - API requests

When to preload

Good candidates for preloading:

  • LCP images
  • Critical fonts
  • Key JavaScript modules
  • Above-the-fold resources

Preload vs prefetch

  • Preload: High priority, needed now
  • Prefetch: Low priority, might need soon

Common mistakes

  • Preloading too many resources
  • Preloading non-critical resources
  • Missing crossorigin for fonts
  • Preloading resources already in HTML

Impact on LCP

Preloading your LCP image can significantly improve LCP by starting the download earlier:

<link rel="preload" as="image" href="hero.jpg" fetchpriority="high">

Monitor your website performance

VitalSentinel tracks Core Web Vitals and performance metrics to help you stay ahead of issues.