You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fetchpriority feature is currently in experimental mode, and it's currently not supported by AMP.
This will cause content pieces to be flagged with an error related to an invalid attribute, and there might be a conflict with the motto Enhancement for most, regression for none.
Steps to reproduce
Ensure you have the Performal Lab and AMP plugins installed and active;
Go to the AMP Settings page and make sure to use either Standard or Transitional template mode;
Visit a published post/page in the FE that has an image;
In the admin bar, client the menu AMP, and click View AMP version. If this menu option isn't available, it might be that you're already seeing the AMP version;
You should see a yellow icon next to the AMP word. Expand the menu and click Validate URL;
You should see a similar error as the attached screenshot;
Screenshots
The text was updated successfully, but these errors were encountered:
WordPress is adding fetchpriority correctly to <img> tags, but then the AMP plugin is turning those into <amp-img> and not removing the attribute.
FWIW you can use add_filter( 'amp_native_img_used', '__return_true' ); to keep using the native <img> even when using AMP — it's totally supported and valid AMP.
Agreed, fetchpriority is in fact no longer experimental but part of the HTML standard. If amp-img does not support it, I think it needs to be resolved on that side.
Given that AMP is not associated with the WordPress core project and not a web standard either, I don't think it would be appropriate to fix this in the Performance Lab plugin.
Bug Description
The
fetchpriority
feature is currently in experimental mode, and it's currently not supported by AMP.This will cause content pieces to be flagged with an error related to an invalid attribute, and there might be a conflict with the motto Enhancement for most, regression for none.
Steps to reproduce
View AMP version
. If this menu option isn't available, it might be that you're already seeing the AMP version;Validate URL
;Screenshots
The text was updated successfully, but these errors were encountered: