[wp-trac] [WordPress Trac] #28580: Speed up customizer by lazy-loading controls and settings as needed
WordPress Trac
noreply at wordpress.org
Fri Oct 3 04:54:16 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: has-patch | Focuses: javascript
-------------------------+-----------------------------
Changes (by westonruter):
* keywords: needs-patch => has-patch
Comment:
Currently the Customizer posts all settings with every request to the
Preview, and this can add a lot of time with each request if there are a
lot of settings registered (e.g. when there are a lot of sidebars
registered).
In [attachment:28580.diff] I've greatly improved the performance for
loading the preview, including the delay for refreshing the preview, by
changing the Ajax request to only include data for settings that have
actually been changed (those which are dirty).
(I think the `_dirty` property should be changed to perhaps be a `dirty`
`Value` which can be watched itself.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28580#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list