Developed by PageSpeed.pro
Contribute via GithubReport a bugReview this plugin

PageSpeed.pro has developed a plugin that is able to provide instant (<1ms) page load times, up to 99% HTML data transfer saving and real time HTML (live content). Information / Demo (WooCommerce)

CTRL->options['update_count']) && intval($this->CTRL->options['update_count']) > 0) { // get current critical css config $criticalcss_files = $this->CTRL->criticalcss->get_theme_criticalcss(); /** * Test if critical CSS has been configured */ $criticalcss_configured = false; $css = (isset($criticalcss_files['global.css'])) ? $this->CTRL->criticalcss->get_file_contents($criticalcss_files['global.css']['file']) : ''; if ($css === '') { // empty, try conditional critical CSS foreach ($criticalcss_files as $file => $config) { if ($file === 'global.css') { continue 1; } $css = (file_exists($criticalcss_files[$file]['file'])) ? $this->CTRL->criticalcss->get_file_contents($criticalcss_files[$file]['file']) : ''; if ($css !== '') { $criticalcss_configured = true; break; } } } else { $criticalcss_configured = true; } if (!$criticalcss_configured) { print '

'.__('Warning: Critical Path CSS is empty. This may cause a Flash of Unstyled Content when CSS optimization is enabled and it may trigger the two Google PageSpeed rules Eliminate render-blocking JavaScript and CSS in above-the-fold content and Prioritize visible content that cause a significant penalty in the Google PageSpeed score.', 'abovethefold').'

Test Google PageSpeed Score

'; } }