Title: WP_Customize_Manager::customize_preview_loading_style
Published: April 23, 2015
Last modified: May 20, 2026

---

# WP_Customize_Manager::customize_preview_loading_style()

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/wp_customize_manager/customize_preview_loading_style/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_customize_manager/customize_preview_loading_style/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_customize_manager/customize_preview_loading_style/?output_format=md#wp--skip-link--target)

Prints CSS for loading indicators for the Customizer preview.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_customize_manager/customize_preview_loading_style/?output_format=md#source)󠁿

    ```php
    public function customize_preview_loading_style() {
    	?>
    	<style>
    		body.wp-customizer-unloading {
    			opacity: 0.25;
    			cursor: progress !important;
    			-webkit-transition: opacity 0.5s;
    			transition: opacity 0.5s;
    		}
    		body.wp-customizer-unloading * {
    			pointer-events: none !important;
    		}
    		form.customize-unpreviewable,
    		form.customize-unpreviewable input,
    		form.customize-unpreviewable select,
    		form.customize-unpreviewable button,
    		a.customize-unpreviewable,
    		area.customize-unpreviewable {
    			cursor: not-allowed !important;
    		}
    	</style>
    	<?php
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-customize-manager.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/class-wp-customize-manager.php#L2057)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-customize-manager.php#L2057-L2079)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_customize_manager/customize_preview_loading_style/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.2.0](https://developer.wordpress.org/reference/since/4.2.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_manager%2Fcustomize_preview_loading_style%2F)
before being able to contribute a note or feedback.