Best to ask theme or plugin developer. You didn’t provide any details about the plugin or theme.
Thanks for your answer. I am talking about this here:
Media improvements
WordPress 6.1 will automatically add decoding="async" to image attributes. In simple terms, this function tells your visitor’s browser that it’s okay to load images a bit later in favor of other information and data. This results in the page loading the content much faster and also reduces page render time. This is a huge performance booster for any web page containing a lot of images. It’s also good to know that you can remove this function.
Source: https://yoast.com/performance-improvements-wordpress-6-1/
—
So this is a general feature that seems to come with WP itself. I was curious if I could turn this off somehow using the WP backend.
Another solutions seems to be editing the wp-includes/media.php file. See this source: https://developer.ww.wp.xz.cn/reference/functions/wp_img_tag_add_decoding_attr/
Is this something that is OK to do? Or should this better be left alone?
For what it’s worth, here is the missing information:
WP version: 6.1.1
Theme: Meteorite
Plug-in: Photonic (Image Gallery being pulled from flickr)
Thanks.
You should avoid editing core WordPress files as you can break the site, introduce issues, and any changes will be overwritten each time core updates (minor & major).
The first port of call is to contact the developer of the plugin to notify of this issue. Assuming the plugin is actively maintained, then the developer will want to be 100% compatible with the latest versions of WordPress. If the plugin is not actively maintained, then you should look for another plugin if it is starting to cause compatibility issues. If this is the support forum for the Photonic plugin, then the developer seems to be actively responding to support request.
If all else fails, have a read of this thread and try adding the add_filter('wp_img_tag_add_decoding_attr', '__return_false'); filter to the functions.php file of your child theme.