Function: | W3SpeedsterExcludeCssFilter |
---|---|
Description: | If you want to dynamically exclude a CSS file from optimization, W3Speedster allows you to exclude it from optimization (like style.css). |
Parameter: | $exclude_css – 0(default) || 1 $css_obj – link tag in object format. $css – Content of the CSS file you want to make changes in. $html – content of the webpage. |
Return: | $exclude_css – exclude CSS from optimization. |
function W3SpeedsterExcludeCssFilter($exclude_css,$css_obj,$css,$html){
if(wp_is_mobile()){
if(strpos($css,'style.css') !== false){
$exclude_css = 1 ;
}
}
return $exclude_css;
}