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

WordPress Trac noreply at wordpress.org
Thu Oct 16 04:36:40 UTC 2014


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

Old description:

> As more and more controls and settings get added to the customizer, it's
> performance is bound to take an increased hit, especially for themes that
> do not implement `postMessage` transport for controls. The Widget
> Customizer work showed that settings and controls can be created
> dynamically after the customizer loads. From the start we should consider
> dynamically instantiating controls, even entire sections, at the moment
> that they are accessed. As part of this, the JS should be cleaned up to
> make it a bit easier to create new controls. Right now it involves a bit
> of DOM manipulation to attach controls to the right section. Likewise,
> there is no JS API for Customize sections (accordions).
>
> See also #27406, which introduces the ability to group sections. These
> would need a JS API as well.

New description:

 As more and more controls and settings get added to the customizer, it's
 performance is bound to take an increased hit, especially for themes that
 do not implement `postMessage` transport for controls. The Widget
 Customizer work showed that settings and controls can be created
 dynamically after the customizer loads. From the start we should consider
 dynamically instantiating controls, even entire sections, at the moment
 that they are accessed. As part of this, the JS should be cleaned up to
 make it a bit easier to create new controls. Right now it involves a bit
 of DOM manipulation to attach controls to the right section. Likewise,
 there is no JS API for Customize sections (accordions).

 See also #27406, which introduces the ability to group sections. These
 would need a JS API as well.

 The Customizer preview should `postMessage` the panels, sections, controls
 that it expects up to the Customizer pane and they can be created on
 demand; see #28709.

--

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


More information about the wp-trac mailing list