Function: | w3SpeedsterNoCriticalCss |
---|---|
Description: | W3Speedster allows you to exclude the pages from the Critical CSS (like search pages). |
Parameter: | $url- Stores the url of the page. $ignore_critical_css- 0 (default) || 1 |
Return: | 1 – it will exclude the page you do not wish to create critical CSS. |
function w3SpeedsterNoCriticalCss($url, $ignore_critical_css){
if(strpos($url,'/path/') !==false) {
$ignore_critical_css = 1;
}
return $ignore_critical_css;
}