ess_running' ); delete_transient( 'rocket_critical_css_generation_process_complete' ); } /** * Hides unwanted blocks from the HTML to be parsed. * * @param string $html HTML content. * * @return string */ private function hide_comments( string $html ): string { $replace = preg_replace( '#.*?#is', '', $html ); if ( null === $replace ) { return $html; } $replace = preg_replace( '//Uis', '', $replace ); if ( null === $replace ) { return $html; } return $replace; } /** * Hides