Looking for a way to load a function after customizer preview refresh complete

If you want to bind the callback from the customizer panel you can use:

wp.customizer.bind( 'preview-ready', callbackFn );

otherwise if you need to bind it from preview itself you can use:

wp.customize.previewer.bind('ready', callbackFn);

Leave a Comment