CHT10

W3speedster Exclude Page Optimization

Function: W3SpeedsterExcludePageOptimization Description: W3Speedster allows you to exclude the pages from the Optimization. if you wish to exclude your pages from optimization. (like cart/login pages). Parameter: $html = Page viewsources content. $exclude_page_optimization = 0(default) || 1 Return: 1 – it will exclude the page from optimization. 0 – it will not exclude the page from […]

Read More…

W3speedster Exclude Internal Js W3 Changes

Function: W3SpeedsterExcludeInternalJsW3Changes Description: Our plugin makes changes in JavaScript files for optimization, if you do not want to make any changes in JavaScript file, W3Speedster allows you to exclude JavaScript files from the plugin to make any changes. Parameter: $path- path of your script tags url $string – JavaScript files content. $exclude_from_w3_changes = 0(default) || […]

Read More…

W3speedster Customize Script Object

Function: W3SpeedsterCustomizeScriptObject Description: W3Speedster allows you to customize script objects while minifying and combining scripts. 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. function W3SpeedsterCustomizeScriptObject($script_obj, $script){ // your code return $script_obj; } function W3SpeedsterCustomizeScriptObject($script_obj, $script){ // your code […]

Read More…

W3speedster External Javascript Filter

Function: W3SpeedsterExternalJavascriptFilter Description: If you want to dynamically exclude a JavaScript file or inline script from optimization, W3Speedster allows you to exclude it from optimization (like revslider). Parameter: $exclude_js – 0(default) || 1 $script_obj – Script in object format. $script – Content of the JS file you want to make changes in.$html – content of […]

Read More…

W3speedster External Javascript Customize

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 […]

Read More…

W3speedster Customize Force Lazyload Css

Function: w3SpeedsterCustomizeForceLazyCss. Description: If you wish to Force Lazyload CSS files dynamically for a specific page or pages, you can do so with the W3Speedster, it allows you to dynamically force lazyload stylesheet files (for instance font file like awesome, dashicons and css files). Parameter: $force_lazyload_css – Array containing text to force lazyload which you […]

Read More…

W3speedster Exclude CSS Filter

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 […]

Read More…

W3speedster Prevent Htaccess Generation

Function: w3SpeedsterPreventHtaccessGeneration. Description: Our plugin converts .jpg/.png format to WebP format without changing the URL. it disable webp to render from HTACCESS. Parameter: $preventHtaccess = 0(default) || 1 Return: 1 – It will add w3.webp at the end of the url for instance (xyz.jpgw3.webp). function w3SpeedsterPreventHtaccessGeneration($preventHtaccess){ $preventHtaccess = 1; return $preventHtaccess; } function w3SpeedsterPreventHtaccessGeneration($preventHtaccess){ $preventHtaccess […]

Read More…

W3speedster Customize Image

Function: w3SpeedsterCustomizeImage Description: Customize image tags. Parameter: $img = Image tag with all attributes $imgnn = Modified image tag by plugin $imgnn_arr = Image tag attributes array Return: $imgnn- Customized image tags function w3SpeedsterCustomizeImage($imgnn,$img,$imgnn_arr){ if(strpos($imgnn,’alt’) != false){ $imgnn = str_replace(‘alt=””‘,’alt=”value”‘,$imgnn); } return $imgnn; } function w3SpeedsterCustomizeImage($imgnn,$img,$imgnn_arr){ if(strpos($imgnn,’alt’) != false){ $imgnn = str_replace(‘alt=””‘,’alt=”value”‘,$imgnn); } return $imgnn; […]

Read More…

W3speedster Exclude Image To Lazyload

Function: w3SpeedsterExcludeImageToLazyload Description: W3Speedster allows you to exclude the images from optimization dynamically which you don’t want to lazyload. Parameter: $exclude_image = 0(default) || 1 $img = Image tag with all attributes $imgnn_arr = Image tag Return: 1 – it will lazy load the image. 0 – it will not lazy load the image. function […]

Read More…