Preload Featured Images source code
By WPZOOM, on WordPress.org since 2021. 1,000+ active installs.
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.
- README.md modified, -9 bytes
- preload-featured-image.php modified, +3,749 bytes
- readme.txt modified, +1,168 bytes
Release history
2 releases since June 2026- 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.
- 1.0.0 Jun 5, 2026