[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 Oct 16 01:11:17 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: 4.1
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
---------------------------+-------------------------
Comment (by cainm):
+1.
I started to look at this with @iamtakashi while he was developing the
theme. We were thinking about breaking up `$css` in
`twentyfifteen_color_scheme_css()` into selectors for each color to pass
to 'js/customizer.js' with `wp_localize_scripts()` to avoid duplicating
all of those selectors.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29988#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list