CHT10

W3speedster exclude from page CSS optimization

Function: w3ExcludePagefromCssOptimization
Description: W3Speedster allows you to exclude the pages from the CSS Optimization. if you wish to exclude your pages from CSS optimization. (like cart/login pages).
Parameter: $html = Page viewsources content.
Return: True – it will exclude the page from optimization.
False – it will not exclude the page from optimization.

function w3ExcludePagefromCssOptimization($html){
    if(strpos($html,'/*content*/') !== false{
         return true;
    }
    return false;
}