Function: w3SpeedsterInternalJsCustomize Description: If you wish to make changes in JavaScript files, W3Speedster allows you to make changes in JavaScript Files. Parameter: $path- Path of the JS file. $string – javascript you want to make changes in. Return: $string– make changes in the internal JS file. function w3SpeedsterInternalJsCustomize($string,$path){ if(strpos($path,’//js path//’) !== false){ $string = str_replace(“jQuery(windw)”, […]
Archives: W3Speedster Docs
Documentation for W3Speedster
Create Critical CSS via wp-cron
Enabling this option allows the plugin to generate critical CSS for your WordPress pages using WP-Cron. By leveraging WP-Cron, the plugin can systematically process each page, creating critical CSS at a controlled pace. This method ensures that server performance remains unaffected, as the CSS generation process is spread out over time […]
WebP Image Quality
The W3Speedster Plugin uses a standard quality of 90% for WebP images to maintain their clarity. You can adjust this setting to suit your needs, balancing image quality with file size. […]
Exclude Javascript Tags from Lazyload
With the W3Speedster Plugin, you can exclude specific JavaScript files from lazy loading and minification by entering their URLs in the relevant section. For example, if you have a JavaScript file like xyz.js that you do not want to lazy load or minify, simply provide its URL. This ensures those scripts are loaded normally while […]
Separate Cache for Mobile
Feature: Enables separate caching and optimized content delivery for mobile and desktop users. Functionality: W3Speedster analyzes the User-Agent string from the request header to detect the device type. Based on the detection: A dedicated static HTML cache file is generated for desktop users. A separate static HTML cache file is generated for mobile users. Caching […]
CSS Optimization
[…]
W3speedster Internal Css Customize
Function: w3SpeedsterInternalCssCustomize Description: If you want to make changes in your CSS file, W3Speedster allows you to make changes in stylesheet files. Parameter: $css- Css content of the file. $path- path of css file. Return: $css – make the required changes in CSS files. function w3SpeedsterInternalCssCustomize($css,$path){ if(strpos($path,’ //cssPath // ‘) !== false){ $css = str_replace(‘ […]
Enable Lazy Load
The W3Speedster Plugin allows you to lazy load four types of resources that can delay site loading time: Images, Iframes, Videos, and Audio. By enabling this feature, these resources will be loaded only when needed, improving your site’s performance and load times. […]
Cache Path
The cache of the W3Speedster Plugin is automatically generated inside the cache folder of the WP Content Folder and if you wish to change the path you can change it by putting the full path in this section. […]
Loading secondary CSS
Loading secondary CSS after page load prioritizes critical content, speeding up initial rendering. Loading it on page load ensures all styles are immediately available, enhancing the user experience. […]