Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#58704 closed defect (bug) (fixed)

Image widget images do not support fetch priority or async

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

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.


3 years ago
#1

  • Keywords has-patch has-unit-tests added

#2 @spacedmonkey
3 years ago

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

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

#3 @flixos90
3 years ago

  • Resolution → fixed
  • Status reviewing → 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.


3 years ago

Note: See TracTickets for help on using tickets.