{"id":258888,"date":"2025-11-03T05:39:48","date_gmt":"2025-11-03T05:39:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/fetchpriority-featured-image\/"},"modified":"2026-05-21T10:36:23","modified_gmt":"2026-05-21T10:36:23","slug":"fetchpriority-featured-image","status":"publish","type":"plugin","link":"https:\/\/en-ca.wordpress.org\/plugins\/fetchpriority-featured-image\/","author":23298972,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3.0","stable_tag":"1.3.0","tested":"7.0","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"FetchPriority Featured Image","header_author":"Gunjan Jaswal","header_description":"Adds fetchpriority=\"high\" attribute to featured images to improve page loading performance.","assets_banners_color":"1b9fa6","last_updated":"2026-05-21 10:36:23","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/ko-fi.com\/gunjanjaswal","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/fetchpriority-featured-image\/","header_author_uri":"https:\/\/gunjanjaswal.me","rating":0,"author_block_rating":0,"active_installs":200,"downloads":65249,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"gunjanjaswal","date":"2025-12-05 08:03:48"},"1.1.0":{"tag":"1.1.0","author":"gunjanjaswal","date":"2025-12-05 08:05:57"},"1.2.0":{"tag":"1.2.0","author":"gunjanjaswal","date":"2025-12-26 05:42:12"},"1.3.0":{"tag":"1.3.0","author":"gunjanjaswal","date":"2026-05-21 10:36:23"}},"upgrade_notice":{"1.3.0":"<p>Settings page; hero preload with AVIF\/WebP detection; optional low-priority below-fold tagging; theme presets (Astra\/GeneratePress\/Kadence\/Divi\/Elementor); avatar exclusion; admin-bar debug badge. Defaults backward-compatible; low-priority tagging opt-in.<\/p>","1.2.1":"<p>Compatibility with WordPress 7.0 and donation link updated to Ko-fi.<\/p>","1.2.0":"<p>Major compatibility update! Now works with Divi, Elementor, and other page builders. Highly recommended for all users.<\/p>","1.1.0":"<p>Compatibility update for WordPress 6.9 with security improvements. Requires PHP 7.4 or higher.<\/p>","1.0.0":"<p>Initial release of the plugin.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3424809,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3424798,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3424808,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500-es.png":{"filename":"banner-1544x500-es.png","revision":3424805,"resolution":"1544x500","location":"assets","locale":"es","width":1544,"height":500},"banner-1544x500-es_ES.png":{"filename":"banner-1544x500-es_ES.png","revision":3424806,"resolution":"1544x500","location":"assets","locale":"es_ES","width":1544,"height":500},"banner-1544x500-rtl.png":{"filename":"banner-1544x500-rtl.png","revision":3424807,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3424804,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250-es.png":{"filename":"banner-772x250-es.png","revision":3424800,"resolution":"772x250","location":"assets","locale":"es","width":772,"height":250},"banner-772x250-es_ES.png":{"filename":"banner-772x250-es_ES.png","revision":3424802,"resolution":"772x250","location":"assets","locale":"es_ES","width":772,"height":250},"banner-772x250-rtl.png":{"filename":"banner-772x250-rtl.png","revision":3424803,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3424799,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","1.2.0","1.3.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Example of the fetchpriority attribute added to a featured image in HTML source."}},"plugin_section":[],"plugin_tags":[1795,220266,163,247,187459],"plugin_category":[50,54],"plugin_contributors":[245263],"plugin_business_model":[],"class_list":["post-258888","plugin","type-plugin","status-publish","hentry","plugin_tags-featured-image","plugin_tags-fetchpriority","plugin_tags-images","plugin_tags-performance","plugin_tags-web-vitals","plugin_category-media","plugin_category-security-and-spam-protection","plugin_contributors-gunjanjaswal","plugin_committers-gunjanjaswal"],"banners":{"banner":"https:\/\/ps.w.org\/fetchpriority-featured-image\/assets\/banner-772x250.png?rev=3424799","banner_2x":"https:\/\/ps.w.org\/fetchpriority-featured-image\/assets\/banner-1544x500.png?rev=3424804","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/fetchpriority-featured-image\/assets\/icon.svg?rev=3424808","icon":"https:\/\/ps.w.org\/fetchpriority-featured-image\/assets\/icon.svg?rev=3424808","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>FetchPriority Featured Image is a lightweight plugin that automatically adds the <code>fetchpriority=\"high\"<\/code> 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.<\/p>\n\n<h4>Key Features<\/h4>\n\n<ul>\n<li>Automatically adds <code>fetchpriority=\"high\"<\/code> to the hero \/ featured image<\/li>\n<li>Optional <code>fetchpriority=\"low\"<\/code> for below-fold images \u2014 paired complement that tells the browser to defer non-critical loads<\/li>\n<li><code>&lt;link rel=\"preload\" as=\"image\"&gt;<\/code> for the hero featured image on singular pages \u2014 strongest LCP signal<\/li>\n<li>AVIF \/ WebP detection \u2014 when a sibling <code>.avif<\/code> \/ <code>.webp<\/code> file exists on disk, an extra <code>&lt;link rel=\"preload\" type=\"image\/avif|image\/webp\"&gt;<\/code> is emitted so the browser picks the supported modern format automatically (works with ShortPixel, Imagify, Optimole, and similar)<\/li>\n<li>Theme presets \u2014 auto-detects Astra, GeneratePress, Kadence, Divi, and Hello Elementor and excludes their site-logo \/ header-image classes so the priority budget is spent on the real hero<\/li>\n<li>Avatar \/ Gravatar exclusion \u2014 never tags images with class <code>avatar<\/code> \/ <code>gravatar<\/code> or hosted on gravatar.com<\/li>\n<li>Settings page (Settings \u2192 FetchPriority) for per-context toggles, first-N control, preload, and exclusions<\/li>\n<li>Admin-bar debug badge showing how many images were tagged on the current page (total + how many got <code>high<\/code>)<\/li>\n<li>Compatible with most WordPress themes including Divi, Elementor, Astra, GeneratePress, Kadence, and any theme using standard <code>the_post_thumbnail()<\/code> \/ <code>wp_get_attachment_image()<\/code><\/li>\n<\/ul>\n\n<h4>Why Use FetchPriority?<\/h4>\n\n<p>The <code>fetchpriority<\/code> 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:<\/p>\n\n<ul>\n<li>Largest Contentful Paint (LCP) scores<\/li>\n<li>User experience with faster loading of important images<\/li>\n<li>Overall page performance<\/li>\n<\/ul>\n\n<h4>Developer-Friendly<\/h4>\n\n<p>The plugin uses WordPress's native filters and doesn't modify your database or image files.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>fetchpriority-featured-image<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>That's it! The plugin works automatically with no configuration needed<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20modify%20my%20images%3F\"><h3>Does this plugin modify my images?<\/h3><\/dt>\n<dd><p>No, this plugin only adds an HTML attribute to the image tag. It doesn't modify your actual image files or database entries.<\/p><\/dd>\n<dt id=\"will%20this%20work%20with%20my%20theme%3F\"><h3>Will this work with my theme?<\/h3><\/dt>\n<dd><p>Yes! This plugin works with any theme that uses WordPress's standard featured image functions. It also includes specific support for popular page builders like Divi and Elementor that use custom image rendering methods.<\/p><\/dd>\n<dt id=\"do%20i%20need%20to%20configure%20anything%3F\"><h3>Do I need to configure anything?<\/h3><\/dt>\n<dd><p>No, the plugin works automatically once activated with sensible defaults. Optional fine-tuning is available under <strong>Settings \u2192 FetchPriority<\/strong> (contexts, first-N posts on archives, preload, debug badge).<\/p><\/dd>\n<dt id=\"will%20this%20slow%20down%20my%20site%3F\"><h3>Will this slow down my site?<\/h3><\/dt>\n<dd><p>No, the plugin adds minimal overhead and should actually improve your site's performance by helping browsers prioritize important images.<\/p><\/dd>\n<dt id=\"how%20can%20i%20verify%20it%27s%20working%3F\"><h3>How can I verify it's working?<\/h3><\/dt>\n<dd><p>You can view the HTML source of your pages and look for <code>fetchpriority=\"high\"<\/code> in the featured image HTML.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Added Settings page under Settings \u2192 FetchPriority (Contexts \/ Preload \/ Below-fold \/ Exclusions \/ Theme preset \/ Debug).<\/li>\n<li>Added per-context toggles: Single posts &amp; pages, Blog home, Archives, Search results.<\/li>\n<li>Added \"First N posts on archives\" setting (1\u201320) \u2014 previously hardcoded to first post only.<\/li>\n<li>Added optional <code>&lt;link rel=\"preload\" as=\"image\" fetchpriority=\"high\"&gt;<\/code> for the featured image on singular pages (strongest LCP signal).<\/li>\n<li>Added AVIF \/ WebP detection \u2014 when a sibling modern-format file exists on disk, additional <code>&lt;link rel=\"preload\" type=\"image\/avif|webp\"&gt;<\/code> tags are emitted; browsers pick the supported variant automatically.<\/li>\n<li>Added <code>fetchpriority=\"low\"<\/code> for below-fold images (opt-in) as a paired complement to the hero <code>high<\/code> tag.<\/li>\n<li>Added theme presets (Astra \/ GeneratePress \/ Kadence \/ Divi \/ Hello Elementor) with auto-detection \u2014 excludes theme logo &amp; header classes so the priority budget hits the real hero.<\/li>\n<li>Added Avatar \/ Gravatar exclusion to keep author avatars from consuming the priority budget.<\/li>\n<li>Added admin-bar debug badge showing total tagged + how many were tagged <code>high<\/code>.<\/li>\n<li>Added Settings link to plugin action links on the Plugins screen.<\/li>\n<li>Content filter rewritten to use a <code>preg_replace_callback<\/code> walk so the high\/low budget is honored across all images in the content, not only the first.<\/li>\n<li>Cleaner reset logic on each request via <code>template_redirect<\/code>.<\/li>\n<li>Author display name updated to \"Gunjan Jaswal\".<\/li>\n<\/ul>\n\n<h4>1.2.1<\/h4>\n\n<ul>\n<li>Updated \"Tested up to\" to WordPress 7.0.<\/li>\n<li>Updated donation link to Ko-fi (https:\/\/ko-fi.com\/gunjanjaswal).<\/li>\n<li>Removed extraneous GITHUB_DESCRIPTION.md from plugin root for WordPress.org compliance.<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Added support for Divi theme and Elementor page builder<\/li>\n<li>Implemented <code>wp_get_attachment_image_attributes<\/code> filter for broader compatibility<\/li>\n<li>Added content filter fallback to catch custom image implementations<\/li>\n<li>Improved image detection across different theme rendering methods<\/li>\n<li>Enhanced compatibility with themes that bypass standard WordPress image functions<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Updated for WordPress 6.9 compatibility<\/li>\n<li>Improved security with nonce verification for AJAX calls<\/li>\n<li>Updated minimum PHP requirement to 7.4<\/li>\n<li>Enhanced code quality and WordPress coding standards compliance<\/li>\n<li>Added proper input sanitization and escaping<\/li>\n<li>Aligns with WordPress 6.9's frontend performance improvements<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Automatically adds fetchpriority=&quot;high&quot; attribute to featured images to improve page loading performance and Core Web Vitals.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/258888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=258888"}],"author":[{"embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/gunjanjaswal"}],"wp:attachment":[{"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=258888"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=258888"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=258888"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=258888"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=258888"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=258888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}