[wp-trac] [WordPress Trac] #28580: Speed up customizer by lazy-loading controls and settings as needed

WordPress Trac noreply at wordpress.org
Mon Mar 14 21:35:15 UTC 2016


#28580: Speed up customizer by lazy-loading controls and settings as needed
-------------------------+-----------------------------
 Reporter:  westonruter  |       Owner:  westonruter
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  Future Release
Component:  Customize    |     Version:  3.4
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  javascript
-------------------------+-----------------------------

Comment (by westonruter):

 Lazy-loading widgets have some special performance considerations of their
 own. At the moment, when a pre-existing widget is instantiated
 dynamically, an `update-widget` Ajax request is kicked off to obtain the
 rendered form. This issue will be irrelevant to JS-driven widgets(#33507),
 when they are implemented, because the widget control will be constructed
 entirely client-side from a JS template. For legacy widgets that aren't
 JS-driven, we should batch together the `update-widget` Ajax calls
 (similar to how selective refresh requests are now batched in 4.5) to
 prevent slamming the server with dozens (or hundreds) of HTTP requests for
 (very) large sidebars.

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


More information about the wp-trac mailing list