Function: | W3SpeedsterExternalJavascriptCustomize |
---|---|
Description: | If you want to make changes in your external JavaScript tags, W3Speedster allows you to make changes in external JavaScript tags. |
Parameter: | $script_obj – Script in object format. $script – Content of the JS file you want to make changes in |
Return: | $script_obj – Make changes in Js files from an external source. |
function W3SpeedsterExternalJavascriptCustomize($script_obj, $script){
if(strpos($script,'//text//') !== false){
$script = str_replace(' ',' ',$script)
}
return $script_obj;
}