Title: Support for fetchpriority?
Last modified: March 17, 2023

---

# Support for fetchpriority?

 *  [p15h](https://wordpress.org/support/users/prestonwordsworth/)
 * (@prestonwordsworth)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/support-for-fetchpriority/)
 * Dear Brinkmann
 * Many thanks for this great plugin!
 * Performance Lab’s `fetchpriority` module relies on `wp_lazy_loading_enabled`,
   and so doesn’t seem to work with Lazy Loader ([https://github.com/WordPress/performance/pull/528/files/a709c915969e2d3bc4c4fc27a085e25957c3d7f4](https://github.com/WordPress/performance/pull/528/files/a709c915969e2d3bc4c4fc27a085e25957c3d7f4)).
   I wondered therefore if it would be possible by any chance for Lazy Loader to
   support adding a `fetchpriority="high"` attribute to img tags within the `.skip-
   lazy` class?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [p15h](https://wordpress.org/support/users/prestonwordsworth/)
 * (@prestonwordsworth)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/support-for-fetchpriority/#post-16569932)
 * Perhaps something along the lines of:
 *     ```wp-block-code
       function replace_text($text) {
       	$text = str_replace('decoding="async"', 'fetchpriority="high"', $text);
       	return $text;
       }
       ```
   
 *  Plugin Author [Florian Brinkmann](https://wordpress.org/support/users/florianbrinkmann/)
 * (@florianbrinkmann)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/support-for-fetchpriority/#post-16601176)
 * Hi [@prestonwordsworth](https://wordpress.org/support/users/prestonwordsworth/),
 * I will take a look!
 * Best,
   Florian

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Support for fetchpriority?’ is closed to new replies.

 * ![](https://ps.w.org/lazy-loading-responsive-images/assets/icon-256x256.png?rev
   =1305473)
 * [Lazy Loader](https://wordpress.org/plugins/lazy-loading-responsive-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lazy-loading-responsive-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lazy-loading-responsive-images/)
 * [Active Topics](https://wordpress.org/support/plugin/lazy-loading-responsive-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lazy-loading-responsive-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lazy-loading-responsive-images/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Florian Brinkmann](https://wordpress.org/support/users/florianbrinkmann/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/support-for-fetchpriority/#post-16601176)
 * Status: not a support question