[wp-trac] [WordPress Trac] #33507: Allow widget controls to be JS-driven

WordPress Trac noreply at wordpress.org
Mon Mar 14 21:48:24 UTC 2016

#33507: Allow widget controls to be JS-driven
 Reporter:  westonruter  |       Owner:  westonruter
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  Future Release
Component:  Widgets      |     Version:  3.9
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  javascript, performance

Comment (by westonruter):

 As this depends on #35574, it seems this also depends on Fields API: we
 need a way to build widget form controls with JS and for widget form
 controls to be populated with the widget instance data directly from the
 JS model without any server round-trips. The only server communication
 needed would be to send the widget instance data to preview, which as of
 selective refresh (#27355) only requires re-generating the container for
 the element not the entire page: nevertheless, with JS-driven widgets it
 would also be possible to extend `WidgetPartial` to `refresh` a widget
 entirely with JS, for example applying the widget instance data to an
 Underscore template. There also seems to be a lot of [https://github.com
 /wp-shortcake/shortcake/issues/585 overlap] between such widgets and
 Shortcake, where perhaps they can both be distilled into the much-mused
 Content Blocks.

 /cc @sc0ttkclark

Ticket URL: <https://core.trac.wordpress.org/ticket/33507#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list