Preload Featured Images source code

By WPZOOM, on WordPress.org since 2021. 1,000+ active installs.

Browse code Download zip

Preload Featured Images automatically in posts to increase the PageSpeed Score. This plugin is a “must-have” for websites using themes that display the Featured Image automatically at the top in single post pages. Below is its source code for every one of its 2 releases, what changed in the latest one, and how often it ships.

What changed in 1.1.0

Released Aug 20, 2026, 2 months after 1.0.0
  • Fixed: the preload link now includes fetchpriority="high". Without it the LCP image was preloaded at Low priority and the in-flight preload “won” the request, so the image downloaded at Low priority despite the rendered having fetchpriority=high — failing PageSpeed’s “LCP request discovery” audit.
  • Fixed: separate mobile/desktop image sizes now use cache-safe responsive media preloads instead of wp_is_mobile(), which was unreliable behind any page cache.
  • Fixed: mobile visitors no longer miss the preload when only a desktop image size is configured.
  • Fixed: front-end preloading no longer depends on the admin having initialized the theme defaults.
  • Improved: settings input is now validated against your site’s registered image sizes.
  • Improved: cleaner, escaped preload markup output.

3 files changed since 1.0.0: 3 modified, 0 added, 0 removed.

Compare 1.0.0 with 1.1.0

Release history

2 releases since June 2026
  1. 1.1.0 Aug 20, 2026 Fixed: the preload link now includes fetchpriority="high". Without it the LCP image was preloaded at Low priority and the in-flight preload “won” the request, so the image downloaded at Low priority despite the rendered having fetchpriority=high — failing PageSpeed’s “LCP request discovery” audit.
  2. 1.0.0 Jun 5, 2026
Full Preload Featured Images changelog with diffs

Source of 1.1.0

7 files
Browse all Preload Featured Images 1.1.0 files Browse trunk