This feature automatically optimizes and converts new images to WebP format as soon as they are uploaded. If you notice that image uploads are taking longer than expected, you may want to turn off this feature. Ensure that the settings for image optimization and WebP conversion are also enabled to use this feature effectively. […]
Archives: W3Speedster Docs
Documentation for W3Speedster
W3speedster Seprate Critical Css For Category
Function: W3speedsterCriticalCssOfCategory Description: W3Speedster Create seprate critical css for categories pages. Parameter: $separate_cat_css- Array of Category. Return: $separate_cat_css – create separate critical css for each category and tag. function W3speedsterCriticalCssOfCategory($separate_cat_css){ $separate_cat_css = array(‘category’,’tag’,’custom-category’); return $separate_cat_css; } function W3speedsterCriticalCssOfCategory($separate_cat_css){ $separate_cat_css = array(‘category’,’tag’,’custom-category’); return $separate_cat_css; } […]
Responsive Images
The W3Speedster Plugin creates responsive images that adjust the background image of your webpage based on the user’s screen size, such as mobile, tablet, or desktop. This ensures that your images look optimal on all devices. […]
W3speedster Change Video To Videolazy
Function: w3SpeedsterVideoToVideoLazy Description: Change video tag to videolazy tag Parameter: $videolazy- 0(default) || 1 Return: 1 – Change video tag to videolazy tag. function w3SpeedsterVideoToVideoLazy($videolazy){ $videolazy= 1; return $videolazy; } function w3SpeedsterVideoToVideoLazy($videolazy){ $videolazy= 1; return $videolazy; } […]
Insert Aspect Ratio in img Tag
This feature allows you to specify the aspect ratio for images directly within the img tag. By including the aspect ratio, you ensure that the space for the image is reserved on the page even before the image is fully loaded. This helps prevent layout shifts and improves the overall user experience by maintaining consistent […]
W3speedster Change Iframe To Iframlazy
Function: w3SpeedsterIframetoIframelazy Description: Change iframe tag to iframlazy tag. Parameter: $iframelazy- 0(default) || 1 Return: 1 – Change iframe tag to iframlazy tag. function w3SpeedsterIframetoIframelazy($iframelazy){ $iframelazy = 1; return $iframelazy; } function w3SpeedsterIframetoIframelazy($iframelazy){ $iframelazy = 1; return $iframelazy; } […]
Start Image Optimization
By starting image optimization, the plugin will compress and optimize images on your site to enhance performance. Free Version: The first 500 images will be optimized. Pro Version: Unlimited images will be optimized. Activate the Pro Version to remove the limit and optimize all images on your site. […]
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 […]
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; […]
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 […]