[wp-trac] [WordPress Trac] #29988: Twenty Fifteen: Use JS/postMessage to update the color scheme instead of triggering a page refresh
WordPress Trac
noreply at wordpress.org
Thu Nov 6 07:22:45 UTC 2014
#29988: Twenty Fifteen: Use JS/postMessage to update the color scheme instead of
triggering a page refresh
------------------------------------+-----------------------------
Reporter: avryl | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: javascript
------------------------------------+-----------------------------
Comment (by bradyvercher):
Here's a concept I've used in a couple projects. It uses an Underscore
template for the CSS so styles can be generated in the Customizer and
passed to the preview.
It doesn't require any trips back to the server, is better for performance
on the frontend since the CSS has already been generated, and the template
itself is easier to read with named variables (they could be a little more
semantic).
Any thoughts on this approach?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29988#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list