Description
FetchPriority Featured Image is a lightweight plugin that automatically adds the fetchpriority="high" attribute to featured images on your WordPress site. This helps browsers prioritize the loading of these important images, improving your site’s performance and Core Web Vitals scores.
Key Features
- Automatically adds
fetchpriority="high"to featured images - Intelligently applies the attribute only where it matters most:
- On single posts and pages
- On the first post of archive pages, blog home, and search results
- Zero configuration required – install and activate
- No settings page to keep things simple and lightweight
- Compatible with most WordPress themes
Why Use FetchPriority?
The fetchpriority attribute is a modern web standard that tells browsers which images should be prioritized during page load. By marking featured images as high priority, you can improve:
- Largest Contentful Paint (LCP) scores
- User experience with faster loading of important images
- Overall page performance
Developer-Friendly
The plugin uses WordPress’s native filters and doesn’t modify your database or image files.
Installation
- Upload the
fetchpriority-featured-imagefolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- That’s it! The plugin works automatically with no configuration needed
FAQ
-
Does this plugin modify my images?
-
No, this plugin only adds an HTML attribute to the image tag. It doesn’t modify your actual image files or database entries.
-
Will this work with my theme?
-
This plugin should work with any theme that uses WordPress’s standard featured image functions. If your theme uses custom code to display featured images, the plugin might not affect those images.
-
Do I need to configure anything?
-
No, the plugin works automatically once activated. There are no settings to configure.
-
Will this slow down my site?
-
No, the plugin adds minimal overhead and should actually improve your site’s performance by helping browsers prioritize important images.
-
How can I verify it’s working?
-
You can view the HTML source of your pages and look for
fetchpriority="high"in the featured image HTML.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“FetchPriority Featured Image” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “FetchPriority Featured Image” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.1.0
- Updated for WordPress 6.9 compatibility
- Improved security with nonce verification for AJAX calls
- Updated minimum PHP requirement to 7.4
- Enhanced code quality and WordPress coding standards compliance
- Added proper input sanitization and escaping
- Aligns with WordPress 6.9’s frontend performance improvements
1.0.0
- Initial release
