| @@ -66,12 +66,8 @@ | ||
| 66 | 66 | // LiteSpeed: Exclude Forms from JS defer. |
| 67 | 67 | add_filter( 'convertkit_output_script_footer', array( $this, 'litespeed_cache_exclude_js_defer' ) ); |
| 68 | 68 | add_filter( 'convertkit_resource_forms_output_script', array( $this, 'litespeed_cache_exclude_js_defer' ) ); |
| 69 | 69 | |
| 70 | - // LiteSpeed: Exclude Forms from JS optimization. | |
| 71 | - add_filter( 'convertkit_output_script_footer', array( $this, 'litespeed_cache_exclude_js_optimize' ) ); | |
| 72 | - add_filter( 'convertkit_resource_forms_output_script', array( $this, 'litespeed_cache_exclude_js_optimize' ) ); | |
| 73 | - | |
| 74 | 70 | // Perfmatters: Exclude Forms from Delay JavaScript. |
| 75 | 71 | add_filter( 'convertkit_output_script_footer', array( $this, 'perfmatters_exclude_delay_js' ) ); |
| 76 | 72 | add_filter( 'convertkit_resource_forms_output_script', array( $this, 'perfmatters_exclude_delay_js' ) ); |
| 77 | 73 | add_filter( 'perfmatters_lazyload', array( $this, 'disable_image_lazy_loading_on_landing_pages' ) ); |
| @@ -154,28 +150,8 @@ | ||
| 154 | 150 | return array_merge( |
| 155 | 151 | $script, |
| 156 | 152 | array( |
| 157 | 153 | 'data-no-defer' => '1', |
| 158 | - ) | |
| 159 | - ); | |
| 160 | - | |
| 161 | - } | |
| 162 | - | |
| 163 | - /** | |
| 164 | - * Disable JS Optimization on Kit scripts when the LiteSpeed Cache Plugin is installed, active | |
| 165 | - * and its "JS Combine" setting is enabled. | |
| 166 | - * | |
| 167 | - * @since 3.3.1 | |
| 168 | - * | |
| 169 | - * @param array $script Script key/value pairs to output as <script> tag. | |
| 170 | - * @return array | |
| 171 | - */ | |
| 172 | - public function litespeed_cache_exclude_js_optimize( $script ) { | |
| 173 | - | |
| 174 | - return array_merge( | |
| 175 | - $script, | |
| 176 | - array( | |
| 177 | - 'data-no-optimize' => '1', | |
| 178 | 154 | ) |
| 179 | 155 | ); |
| 180 | 156 | |
| 181 | 157 | } |