Make WordPress Core

Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#58704 closed defect (bug) (fixed)

Image widget images do not support fetch priority or async

Reported by: spacedmonkey's profile spacedmonkey Owned by: flixos90's profile flixos90
Milestone: 6.3 Priority: normal
Severity: normal Version: 4.8
Component: Widgets Keywords: has-patch has-unit-tests
Focuses: performance Cc:

Description

Steps to replicate:

  • Enable classic widget plugin.
  • Activate theme that supports widgets.
  • Insert image widget into sidebar.
  • Click add image.
  • Click Insert from URL.
  • In url field, insert an image url like https://placehold.co/600x400/EEE/31343C.
  • Click add widget
  • Save widget.

View widgets on front end.

Image tag in manually built in image widget like this. This means that new image features like fetch priority or async.

Change History (5)

This ticket was mentioned in PR #4786 on WordPress/wordpress-develop by @spacedmonkey.


8 months ago
#1

  • Keywords has-patch has-unit-tests added

#2 @spacedmonkey
8 months ago

  • Milestone changed from Awaiting Review to 6.3
  • Owner set to flixos90
  • Status changed from new to reviewing
  • Version set to 4.8

I have put together PR for this. Assigned to @flixos90 for review.

#3 @flixos90
8 months ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 56154:

Media: Ensure that the image widget supports loading optimization attributes.

This changeset adds support for loading optimization attributes such as loading="lazy" and fetchpriority="high" to the image widget. A new context widget_media_image is introduced for that purpose.

Props spacedmonkey, thekt12, mukesh27, westonruter.
Fixes #58704.
See #58235.

This ticket was mentioned in Slack in #hosting by javier. View the logs.


8 months ago

Note: See TracTickets for help on using tickets.