Function: | w3ExcludePagefromJsOptimization |
---|---|
Description: | W3Speedster allows you to exclude the pages from the JS Optimization. if you wish to exclude your pages from JS 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 w3ExcludePagefromJsOptimization($html){
if(strpos($html,'/*content*/') !== false{
return true;
}
return false;
}