[wp-trac] [WordPress Trac] #61734: Add the ability to handle "fetchpriority" to ES Modules and Import Maps

WordPress Trac noreply at wordpress.org
Tue Jul 23 21:17:59 UTC 2024


#61734: Add the ability to handle "fetchpriority" to ES Modules and Import Maps
-------------------------------------+-----------------------------
 Reporter:  dennysdionigi            |      Owner:  (none)
     Type:  enhancement              |     Status:  new
 Priority:  normal                   |  Milestone:  Awaiting Review
Component:  Script Loader            |    Version:  6.6.1
 Severity:  minor                    |   Keywords:
  Focuses:  javascript, performance  |
-------------------------------------+-----------------------------
 This is a follow-up to #56313.

 Following this ticket, seems that adding fetchpriority to module scripts
 gives no luck.

 **So any imported script has high priority, even when they should have low
 fetching prioritize.**\\

 ----


 I guess that should be a plus, to allow that choise / filter also for
 modules and importmaps, while actually loader_tag , script_add_data, not
 even replace  or HTML API seem having effect.

 I guess that giving a low priority hint, sparingly and with proper
 controls, can bring an improvement in overall performance.

 Reference documentation: [https://developer.mozilla.org/en-
 US/docs/Web/API/HTMLScriptElement/fetchPriority]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61734>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list