activeControls: api.settings.activeControls
} );
+ // Display a loading indicator when preview is reloading, and remove on failure.
+ api.preview.bind( 'loading-initiated', function () {
+ $( 'body' ).addClass( 'wp-customizer-unloading' );
+ $( 'html' ).prop( 'title', api.settings.l10n.loading );
+ });
+ api.preview.bind( 'loading-failed', function () {
+ $( 'body' ).removeClass( 'wp-customizer-unloading' );
+ $( 'html' ).prop( 'title', '' );
+ });
+
/* Custom Backgrounds */
bg = $.map(['color', 'image', 'position_x', 'repeat', 'attachment'], function( prop ) {
return 'background_' + prop;