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)”, […]
Doc Category: Wordpress
W3speedster Inner JS Exclude
Function: w3SpeedsterInnerJsExclude Description: Exclude the script tag from lazy loading, which is present in the pages view source. Parameter: $inner_js = The script tag s content is visible in the page s view source $exclude_js_bool = 0(default) || 1 Return: 1 function w3SpeedsterInnerJsExclude($exclude_js_bool,$inner_js){ if(strpos($inner_js,’Script text’) !== false){ $exclude_js_bool= 1; } return $exclude_js_bool; } function w3SpeedsterInnerJsExclude($exclude_js_bool,$inner_js){ […]
W3speedster Inner JS Customize
Function: w3SpeedsterInnerJsCustomize Description: If you want to make changes in your inline JavaScript, W3Speedster allows you to make changes in Inline JavaScript (for instance making changes in inline script you have to enter the unique text from the script to identify the script). Parameter: $script_text- The content of the script. Return: $script_text – Content of […]
W3speedster After Optimization
Function: w3SpeedsterAfterOptimization Description: W3Speedster allows you to make changes to the HTML on your site after the page is optimized by the plugin. For instance replace or add in html. Parameter: $html – full html of the page. Return: 1 – Reflect the changes done in html of the page. function w3SpeedsterAfterOptimization($html){ $html = str_replace(array(‘image.png’),array(‘image-100×100.png’), […]
W3speedster Before Start Optimization
Function: w3SpeedsterBeforeStartOptimization Description: W3Speedster allows you to make changes to the HTML on your site before actually starting the optimization. For instance replace or add in html. Parameter: $html = $html – full html of the page. Return: 1 – Reflect the changes done in html of the page. function w3SpeedsterBeforeStartOptimization($html){ $html = str_replace(array(“”),array(“”), $html); […]
W3speedster Pre Start Optimization
Function: w3SpeedsterPreStartOptimization Description: Modify page content pre optimization. Parameter: $html = Content visible in pages view source. Return: 1 – Reflect the changes done in html of the page. function w3SpeedsterPreStartOptimization($html){ $html = str_replace(‘Existing content’,’Changed content’,$html); return $html; } function w3SpeedsterPreStartOptimization($html){ $html = str_replace(‘Existing content’,’Changed content’,$html); return $html; } […]
Export Settings
Feature: The Export Settings functionality in W3Speedster allows developers and site administrators to save their complete performance optimization configuration as a structured JSON file. This export acts as a reliable backup or a transferable configuration package—ideal for environment synchronization, migration, or collaborative development workflows. Why We Need It Configuration Backup: Preserves all customized optimization settings […]
Import Settings
Feature: The Import Settings feature in W3Speedster enables developers to quickly apply predefined performance configurations by importing a JSON-formatted settings file. This functionality is especially beneficial for managing multiple environments or deploying consistent optimization practices. Why We Need It Consistency Across Sites: Ensures uniform performance configurations across development, staging, and production environments. Time Efficiency: Eliminates […]
Import / Export
[…]
Enable Core Web Vitals Logs
Feature: The “Enable Core Web Vitals Logs” feature in W3Speedster activates real-time tracking of critical user experience metrics, including: Largest Contentful Paint (LCP): Measures page loading performance. First Input Delay (FID): Measures interactivity responsiveness. Cumulative Layout Shift (CLS): Measures visual stability and layout shifts. These logs provide developers with valuable insights into how real users […]