Make WordPress Core

Opened 12 months ago

Closed 3 months ago

Last modified 3 months ago

#58510 closed enhancement (fixed)

Add fetchpriority attribute to wp_preload_resources

Reported by: luboslives's profile luboslives Owned by: adamsilverstein's profile adamsilverstein
Milestone: 6.6 Priority: normal
Severity: normal Version: 6.1
Component: General Keywords: has-unit-tests has-patch
Focuses: performance Cc:


The wp_preload_resources filter only allows for a small set of attributes. Please add the fetchpriority attribute to that list. I see fetchpriority is being discussed, but not in regards to this particular filter.

Attachments (1)

58510.diff (2.4 KB) - added by nihar007 12 months ago.
I added the fetchpriority attribute

Download all attachments as: .zip

Change History (10)

12 months ago

I added the fetchpriority attribute

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

4 months ago

  • Keywords has-patch has-unit-tests added

Add support for the fetchpriority attribute in wp_preload_resources()

Trac ticket:

#2 @tabrisrp
4 months ago

  • Keywords changed from has-patch has-unit-tests to has-unit-tests has-patch

Added a pull request on Github for this enhancement, which includes update of the unit tests too to validate the change.

#3 @adamsilverstein
3 months ago

  • Owner set to adamsilverstein
  • Status changed from new to assigned
  • Version set to 6.1

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

3 months ago

Trac ticket:

#5 @adamsilverstein
3 months ago

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

In 57789:

Script loader: enable fetchpriority attribute in the wp_preload_resources filter.

Add fetchpriority to the attributes accepted by the wp_preload_resources filter. Developers can now use this filter to set fetchpriority for resources being preloaded.

Props nihar007, luboslives, tabrisrp.
Fixes #58510.

#6 @kebbet
3 months ago

@adamsilverstein This ticket is in the Awaiting Review milestone, please milestone it to 6.6 (or 6.5 if this should be included and backported to that branch). Thanks!

#7 @adamsilverstein
3 months ago

  • Milestone changed from Awaiting Review to 6.6

#8 @adamsilverstein
3 months ago

Thanks for catching @kebbet - milestoned for 6.6.

Note: See TracTickets for help on using tickets.