[wp-trac] [WordPress Trac] #31320: Make customizer JavaScript API available during the live preview

WordPress Trac noreply at wordpress.org
Sun Feb 28 03:16:43 UTC 2016


#31320: Make customizer JavaScript API available during the live preview
-------------------------+--------------------------------------
 Reporter:  Fab1en       |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Customize    |     Version:  4.1
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  javascript, performance
-------------------------+--------------------------------------
Changes (by sidati):

 * focuses:  javascript => javascript, performance


Comment:

 @westonruter,
 As i see in the code the widgets/sidebars are initialized inside the API
 `ready` event, so its impossible (without using setTimeout) to bind an
 action to the API `ready` event, after the widgets/sidebars are ready
 because they are attached to the same event `ready`.

 So is there any plan to add another event after widgets/sidebars are
 initialized and ready maybe a `widgets-ready` or `sidebars-ready` event
 :).

 And as temporary solution, can you please provide a perfect duration to
 set it up in the `setTimeout` function.

 Regards,
 Sidati

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31320#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list