[wp-trac] [WordPress Trac] #58895: Make it easier to override default loading optimizations

WordPress Trac noreply at wordpress.org
Mon Jul 24 19:07:23 UTC 2023


#58895: Make it easier to override default loading optimizations
-------------------------+--------------------------
 Reporter:  joemcgill    |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.4
Component:  Media        |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  performance
-------------------------+--------------------------

Comment (by flixos90):

 @joemcgill I just opened a somewhat related #58893, which is about adding
 a filter to `wp_get_loading_optimization_attributes()` for this purpose. I
 think adding a filter to that function makes the most sense as that is the
 low-level point / source of truth where the actual changes are controlled
 (rather than e.g. one of the `wp_img_*()` functions that call it, and are
 semantically tied to images).

 So I think that ticket addresses part of the problems reported here. But I
 agree there is likely more to bring in order related to that, so I think
 this ticket is good to have this discussion. I definitely wouldn't
 consider it a duplicate, but rather overarching.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58895#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list