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

WordPress Trac noreply at wordpress.org
Sat Nov 23 08:08:32 UTC 2019


#48654: Consider a solution/endpoint to lazy-load scripts and styles
-------------------------------------------------+-------------------------
 Reporter:  youknowriad                          |       Owner:  (none)
     Type:  feature request                      |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback needs-unit-   |     Focuses:
  tests                                          |  javascript, rest-api
-------------------------------------------------+-------------------------

Comment (by youknowriad):

 I guess you mean something like the current `load-scripts.php` that also
 loads the dependencies of the given script. This may work too,
 conceptually it's very similar to the endpoint proposed above as it
 exposes the same data but not having to orchestrate inline scripts concats
 in the client is a win.

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


More information about the wp-trac mailing list