[wp-trac] [WordPress Trac] #27355: Customizer: Add framework for selective refresh (partial preview refreshes)
WordPress Trac
noreply at wordpress.org
Thu Jan 14 06:37:35 UTC 2016
#27355: Customizer: Add framework for selective refresh (partial preview refreshes)
----------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 4.5
Component: Customize | Version: 3.4
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
----------------------------+--------------------------
Comment (by rabmalin):
Great. Nice work done. Following things came to my mind after testing
`feature/framework` branch of the repo.
* `add_theme_support` declaration could be omitted. I would like to go
with Nick in this. If `transport` is `partialRefresh` then framework
should automatically apply that method.
* Separate line for `selector` assignment in separate line could be
simplified by passing it as arguments in `add_setting`.
* When I tested using `partialRefresh`, I noticed two request on every
change. One was AJAX request and another was request for whole site. I
guess that was for full page refresh. May be this is a bug.
* It would be great to some kind of notice if `transport` is set
`partialRefresh` and `selector` is not set.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27355#comment:51>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list