Debug2::debug2('[CSS] Load inline CSS ' . substr($match[3], 0, 100) . '...', $attrs);
$debug_info = '__INLINE__';
$con = Optimizer::minify_css($con);
if ($is_webp && $this->cls('Media')->webp_support()) {
$con = $this->cls('Media')->replace_background_webp($con);
if (!empty($attrs['media']) && $attrs['media'] !== 'all') {
$con = '@media ' . $attrs['media'] . '{' . $con . "}\n";
$con = '/* ' . $debug_info . ' */' . $con;
$html = str_replace($match[0], '', $html);
return array($css, $html);
* Handle all request actions from main cls
public function handler()
$type = Router::verify_type();
case self::TYPE_GEN_CCSS:
case self::TYPE_CLEAR_Q_CCSS: