[wp-trac] [WordPress Trac] #12009: Add support for HTML 5 "async" and "defer" attributes

WordPress Trac noreply at wordpress.org
Tue Jun 20 10:25:46 UTC 2023


#12009: Add support for HTML 5 "async" and "defer" attributes
-------------------------------------------------+-------------------------
 Reporter:  Otto42                               |       Owner:  10upsimon
     Type:  enhancement                          |      Status:  assigned
 Priority:  high                                 |   Milestone:  6.3
Component:  Script Loader                        |     Version:  4.6
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests commit      |     Focuses:
  2nd-opinion                                    |  performance
-------------------------------------------------+-------------------------

Comment (by azaozz):

 Related: Thinking more about the "script after" discussion here, it seems
 support for these inline script snippets should be deprecated for
 "blocking" scripts too.

 The legitimate use cases can be re-implemented in JS. Would be a nice "JS
 code modernization". It doesn't seem to make sense for the Script Loader
 API to support this from PHP in 2023.

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


More information about the wp-trac mailing list