# powered-cache/2.1.2/assets/js/admin/classic-editor.js

Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed &amp; Web Vitals Score, version 2.1.2. 19 lines.

- Page: https://pluginprobe.com/plugins/powered-cache/2.1.2/code/assets/js/admin/classic-editor.js
- Raw: https://pluginprobe.com/plugins/powered-cache/2.1.2/raw/assets/js/admin/classic-editor.js
- Modified: 2022-03-14T10:29:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/powered-cache/2.1.2/code/assets/js/admin/classic-editor.js#L10-L20`.

```javascript
/* global jQuery  */
(function ($) {
	$('#powered_cache_specific_critical_css').on('change', function () {
		if ($(this).is(':checked')) {
			$('#powered_cache_disable_critical_css').attr('disabled', 'disbled');
		} else {
			$('#powered_cache_disable_critical_css').removeAttr('disabled');
		}
	});

	$('#powered_cache_disable_critical_css').on('change', function () {
		if ($(this).is(':checked')) {
			$('#powered_cache_specific_critical_css').attr('disabled', 'disbled');
		} else {
			$('#powered_cache_specific_critical_css').removeAttr('disabled');
		}
	});
})(jQuery);

```
