[wp-trac] [WordPress Trac] #48654: Consider a solution/endpoint to lazy-load scripts and styles

WordPress Trac noreply at wordpress.org
Sat Jul 4 16:53:04 UTC 2020


#48654: Consider a solution/endpoint to lazy-load scripts and styles
------------------------------+-----------------------------------
 Reporter:  youknowriad       |       Owner:  spacedmonkey
     Type:  feature request   |      Status:  assigned
 Priority:  high              |   Milestone:  5.5
Component:  REST API          |     Version:  4.7
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  javascript, rest-api
------------------------------+-----------------------------------

Comment (by TimothyBlynJacobs):

 In [changeset:"48295" 48295]:
 {{{
 #!CommitTicketReference repository="" revision="48295"
 Script Loader: Add id attributes to script assets.

 This commit adds a unique ID attribute to script loader generated <script>
 tags as well as related <script> tags for inline JavaScript, translations,
 or parameters.

 This is a first step in adding support for lazy loading scripts and
 styles, but for now is only used to assist in debugging generated output.

 Props dd32, spacedmonkey.
 See #48654.
 }}}

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


More information about the wp-trac mailing list