W3 SpeedUp
for Developers

W3 SPEEDUP IS A FULL PAGE OPTIMIZATION PLUGIN FOR
WORDPRESS THAT CAN DRAMATICALLY SPEED UP WEBSITE.

Getting Started

Installing W3SpeedUp

There are two W3SpeedUp installation options: Automatic or Manual.

Download W3SpeedUp

Once you have bought W3SpeedUp, you can download the zip file from your W3SpeedUp account page.

Note: If you use Safari, it might be automatically unzipping the file on download. Either re-zip it, or follow instructions given below.

Disable Automatic Un-Zipping in Safari

If you want to use the Automatic Installation method for W3SpeedUp, ie. installing the plugin through your WordPress dashboard, you need to start with the zip file of the plugin. If you use Safari, it might be unzipping it for you which causes confusion.

Go to Safari > Preferences and un-check the box labeled ‘Open “safe” files after downloading’:

Now you can download the zip file normally and proceed with the installation.

Automatic Installation

Automatic installation is the easiest way to install W3SpeedUp.

To do it, log in to your WordPress admin panel and go to Plugin > Add New and click on Upload Plugin.

Select the zip file and click on Install Now. After clicking that link, you will be asked if you are sure you want to install the plugin. Click yes and WordPress will automatically complete the installation process.

Once it’s activated, simply go to the settings panel.

Manual Installation

The manual installation involves uploading all the files to your web server through FTP software.
Unzip the archive, then upload the ‘w3speedup’ folder to “wp-content/plugins” directory.
Finally activate the plugin through your WordPress admin.

Once it’s activated, simply go to the settings panel.

Getting Started with W3SpeedUp

The first thing you’ll want to do once you’ve activated W3SpeedUp is:
Run an ON/OFF test with W3SpeedUp’s default settings, and see how much faster your site has become already!

You’ll be able to see the improvement in loading time W3SpeedUp has achieved just by running in its default configuration. If you have advanced knowledge about how the rendering of a website works in the browser, you can start to further optimize your setup based on recommendations from performance testing tools like GTmetrix, Pingdom Tools, or Google Developers PageSpeed Insights. If you find that your results vary with these tools then it is best to use one tool, consecutively test your website 3 times and take the average of the results.

Are there any recommended settings for W3SpeedUp?

There isn’t one recommended configuration of W3SpeedUp that can be used on every site. Themes, plugins, and hosting environments can vary greatly. Therefore, some settings will work differently on different websites.

There are even settings like File optimization that will work perfectly fine on one website, but won’t work at all on another. So sometimes leaving a setting entirely disabled can be your best bet! On the other hand, a number of key features—like CSS Minification, JS Minification, and WebP support are completely automated; you just have to check them and they’ll quietly work their magic under the hood and make your site faster without you having to move a finger.

Automated features

The following features are fully automated in W3SpeedUp:

  • Enabling WebP support
  • Image Quality control
  • Lazy Loading
  • CSS Minification
  • JS Minification
  • Combining of inline and 3rd party scripts
  • Combining Google Fonts

Settings panes

Looking for a specific setting? Here’s a quick overview of where’s what in W3SpeedUp:

‘General’ Tab
  • License Key
  • CDN URL
  • Lazy Loading
  • WebP Support
  • Image Quality Control
  • Excluded Pages
‘CSS’ Tab
  • CSS Minification
  • Other CSS Optimizations
  • Secondary CSS Optimization
  • Combine Google Fonts
‘JavaScript’ Tab
  • JavaScript Minification
  • Exclude JavaScript tags
  • Combine (concatenate) JavaScript
  • Delay JavaScript tags
  • Lazy Load JavaScript
  • Exclude JavaScript tags
Image Settings
  • Image Optimization
  • Image Size Adjustment

Updating W3SpeedUp

There are two ways to update W3SpeedUp: automatic and manual. Remember, if your license has expired, you can renew it on your account page.

Automatic update

Go to the Plugins page in the WordPress Dashboard (that’s {your site URL}/wp-admin/plugins.php)

Find the update notification below the W3SpeedUp entry, and click ‘Update Now’:

If you don’t see any update notification, you can try it a few hours later.

In your WordPress admin go to Dashboard > Updates and click ‘Check Again’. In some cases, this will cause the notice to appear.

If you still don’t see any update notification, your server may be blocking the requests to our update system, so you should use the manual update instead.

Manual Update

There are two possible ways to update W3SpeedUp manually.

Update via FTP
  1. Go to your account and download the latest version of W3SpeedUp
  2. Unzip the archive and then upload the ‘w3speedup’ folder to ‘wp-content/plugins’ directory
Update via WP Admin

Once you have downloaded W3SpeedUp from your account page, log in to WordPress Admin Dashboard of your website and follow these steps:

  1. Go to the Plugins page, deactivate and delete W3SpeedUp.
  2. Go to Plugins > Add new > Upload, upload the new .zip file, and activate your new W3SpeedUp version.

Update notification is missing

In some cases, you won’t see the update notification for W3SpeedUp in your WordPress admin panel at all. Luckily, there is a way to force the update notification of W3SpeedUp.

Visit the Plugins page in WordPress, and add the following query string to the end of the URL:

?w3speedup_force_update=1

So it looks like this, with example.com representing your domain here:

http://example.com/wp-admin/plugins.php?w3speedup_force_update=1

Scrolling down to the W3SpeedUp plugin entry, you should see an update notification now.

Can’t upload/install W3SpeedUp

Are you seeing this error message when you try to upload W3SpeedUp through your WordPress dashboard?

“The uploaded file exceeds the upload_max_filesize directive in php.ini.”

This message means there is a limit on the file size you can upload to your site. This limitation may be set at the site level or by your host. The W3SpeedUp zip file is just over 2MB so if the limit for your site is 2MB or less you would see this error message.

Quick Fix

To resolve it automatically, install the plugin Increase Max Upload Filesize: https://wordpress.org/plugins/upload-max-file-size/

If that plugin is not able to fix it automatically, you have the following options:

  • You can install W3SpeedUp by uploading it via FTP.
  • Contact your host to increase the upload limit.
  • Or, if you’re comfortable editing files you can follow the manual steps below to manually increase the upload limit.

Manual Fix

How to increase the upload_max_filesize limit

It’s possible to increase the defined limit by using one of the directives below. Depending on your server setup and host, the method that works could vary from case to case. You don’t have to edit all these files, just find the one that works for your site.

In each example below, “10M” represents a 10MB file size limit. You may set that number as you wish, but be sensible and don’t set it too high.

Make sure you take a backup of your files before editing them!

.htaccess
php_value upload_max_filesize 10M
php.ini file

If your host allows you to modify your site’s configuration with a custom php.ini file, you may use the following:

upload_max_filesize = 10M
wp-config.php
@ini_set(‘upload_max_size’ , ’10M’);
functions.php

If you use a child theme, you may add the following to the functions file:

@ini_set(‘upload_max_size’ , ’10M’);
Check your current upload limit

To verify if your attempt to increase the upload limit was successful you can check the current limit.

Go to: Media > Add New

Underneath the upload area, you will see: Maximum upload file size

After implementing one of the above methods, if the limit hasn’t changed it means your host is controlling this and you’ll have to contact them directly.

What exactly does W3SpeedUp do?

W3SpeedUp is a WordPress performance optimization plugin with many features:

  • CDN Integration
  • Optimize images
  • Lazy Loading
  • WebP Support
  • Minify CSS
  • Minify JavaScript
  • Defer parsing of JavaScript
  • Serve scaled images
  • Avoid CSS @import
  • Exclusions
  • Debug Site
  • Google Fonts Optimization
  • Delay JS

Uninstalling W3SpeedUp

W3SpeedUp can be uninstalled in two ways: from the plugins page in WordPress admin, and manually through FTP/File Manager.

From WordPress admin

You can uninstall W3SpeedUp as any other plugin from the WordPress admin Dashboard. W3SpeedUp will clean up after itself automatically, removing any files/folders and modifications (in the .htaccess or wp-config.php files for example).

Manually

If you manually remove W3SpeedUp from the plugins folder in /wp-content/plugins/, you will also have to handle the cleaning yourself. Here is a list of things to remove/edit:

  • Delete the /wp-content/cache/ and /wp-content/w3-speedup-config/ folders
  • Delete the /wp-content/advanced-cache.php file
  • Edit the .htaccess file, removing anything between #BEGIN W3SPEEDUP and #END W3SPEEDUP
  • Edit the wp-config.php file, setting the define(‘WP_CACHE’, true) to false or removing the line
  • Delete the w3speedup_settings entry, and the transients and cronjob in the WordPress options table of your Database

How to find the best settings for your site?

So, you’ve activated W3SpeedUp. And now you’re wondering, “How do I get the best results for my site?”

Every site has a different theme, a different set of plugins, and different content. So the best settings will vary from site to site. In this article, you’ll learn the safest way to experiment with the most commonly used W3SpeedUp settings.

The goal is always to make your site faster. And activating more options doesn’t always result in more speed. So don’t worry if you’re not able to turn everything on.

To check if your site is faster, you should use a tool that tests load times. You can make use of tools like GTmetrix, Pingdom Tools, or Google Developers PageSpeed Insights to test the load times of your website and get a detailed report.

It’s a good idea to take some benchmark speed tests before you begin configuration, then again after you’re done applying optimizations

Best practices for configuration

When testing options in W3SpeedUp, please use the following process:

  • Activate options one-at-a-time, not everything at once
  • After each option that you activate, check your site in a browser window where you are not logged in to WordPress. An incognito/private window works well. By doing this you will be able to see immediately if a particular option causes any issue.
  • Check a few types of pages on your site. If anything doesn’t look right, don’t panic! Disable the last option you activated and your site will return to normal.

Getting Started with Configuration

General > Image Optimization

You can enable Lazy Loading for images, I-frames, and videos. We recommend activating LazyLoad, because it helps reduce the negative performance impact of images, by loading them only when the visitor scrolls down the page and actually needs to see them.

You can also enable automatic optimization of images when uploaded and exclude images from optimization if you want to.

CSS > CSS Optimization

You can enable CSS Minification so that W3SpeedUp minifies your CSS files. You can set rules of minification and even exclude CSS files from this minification process. You can also select when to load secondary CSS and whether you want to delay it

Javascript > JS Optimization

You can enable JS Minification from this tab to instruct W3SpeedUp to minimize JavaScript files. You can also Defer Parsing of JavaScript in this tab and exclude JS from combining. You can also choose when you want to load combined JavaScript and how much time do you want to delay JS tags by.

General Settings

1. LICENSE KEY:-

Your unique License Key is auto-generated when your plugin order is successfully completed, the secret code of your License key is added with the “Order completed” email notification sent to you by the W3SpeedUp, immediately after your order. Each License Key data is generated per product configuration and the license key is mandatory to insert to validate your licensed plugin access.

2. TURN ON OPTIMIZATION:-

Among several other tasks, the W3SpeedUp Plugin mainly performs 4 tasks on your site, it enables the JS & CSS Minification, Generates Critical CSS, and converts all your images to WebP format without reducing the image quality.In order to enable all these, just turn on this field. However, you can individually adjust each of them (ie. JS, CSS, image optimization) by changing their respective field setting.

3. CDN URL:-

During the implementation of the CDN, our plugin provides a section to exclude the specific extensions so that the work of the plugin is not hampered, for instance, excluding ‘Font Extensions’ like (.woff, .ttf, .eot, .woff2).

4. EXCLUDE FILE EXTENSIONS FROM CDN:-

You can use W3SpeedUp to debug your website too! Simply check the “Debug Site” checkbox in the General tab of W3SpeedUp plugin settings.

5. ENABLE LEVERAGE BROWSING CACHE:-

Our plugin also provides smart automatic functionality to enable leverage browser cache on your site, the plugin has an in-built response to the leverage cache, it automatically implements in your site.

6. ENABLE Gzip COMPRESSION:-

Our plugin also provides smart automatic functionality to enable Gzip Compression on your site, it automatically implements in your site.

7. REMOVE QUERY PARAMETERS:-

Our plugin also provides smart automatic functionality to remove Query Parameters from CSS & JS on your site, it automatically implements in your site.

8. ENABLE LAZY LOAD:-

The W3SpeedUp Plugin lazyload the 3 principal things which specifically delay the site loading time, our plugin will lazy load the Images, Iframe, and Videos on your site.

9. START LAZY LOAD IMAGES, VIDEOS, & IFRAMES PIXELS BELOW THE SCREEN:-

The W3SpeedUp Plugin keeps a standard 200 px quality to keep the quality of your images intact and unscrewed. The image is lazyloaded if it is in the viewpoint otherwise not but that doesn’t mean the other images won’t be lazyloaded, they will be lazy loaded as soon as you scroll up and the image comes in the viewpoint.

10. ENABLE WebP SUPPORT:-

The W3SpeedUp Plugin converts the image formats (.jpg & .png) into WebP format.

11. WebP IMAGE QUALITY:-

The W3SpeedUp Plugin keeps a standard 90% quality to keep the quality of your images intact and unscrewed. However, you can change it according to your suitability.

12. OPTIMIZE jpg/png IMAGES:-

The W3SpeedUp Plugin optimizes all images (.jpg & .png).

13. jpg & .png IMAGE QUALITY:-

The W3SpeedUp Plugin keeps a standard 90% quality to keep the quality of your images intact and unscrewed. However, you can change it according to your suitability.

14. OPTIMIZE IMAGES ON THE GO:-

The W3SpeedUp Plugin is so advanced that whenever you open a page on your site, it takes a few seconds to open that page and meanwhile, during that short period of page loading time, our plugin converts all the images format on that particular page into WebP format to load the page even faster.

15. AUTOMATICALLY OPTIMIZE IMAGES ON UPLOAD:-

Whenever you upload media the W3SpeedUp Plugin automatically optimize and converts the image formats into WebP format. The individual setting to optimize the images and convert it to webp should be enabled.

16. PRELOAD RESOURCES:-

If you wish to preload any resources like images, CSS, JS, and fonts all you gotta do is simply put your complete resource URL in the ‘Preload Resources Section’ and it will preload. Simple as it sounds. Enter each url in a separate line.

17. EXCLUDE IMAGES FROM LAZY LOADING:-

For all the images you do not wish to lazy load, all you gotta do is to simply exclude those particular images by putting the image URL, classname, Id, alt attribute etc (eg: xyz.png, nolazy).

18. EXCLUDE PAGES FROM OPTIMIZATION:-

For all the pages you do not wish to optimize, all you gotta do is simply exclude those particular pages by putting the page URL (eg: /cart, /login).

19. CACHE PATH:-

The cache of the W3SpeedUp Plugin is automatically generated in the WP Content Folder and if you wish to change the path you can change it by putting the full path in this section.

CSS Optimization

1. ENABLE CSS MINIFICATION:-

The W3SpeedUp Plugin provides CSS Minification.

2. LOAD CRITICAL CSS:-

The W3SpeedUp Plugin generates Critical CSS and load in .css file.

3. LOAD CRITICAL CSS IN STYLE TAG:-

Th5 W3SpeedUp Plugin loads Critical CSS in style tag.

4. EXCLUDE LINK TAG CSS FROM MINIFICATION:-

With the W3SpeedUp Plugin you can easily exclude CSS files for all the pages you do not wish to Lazyload and CSS Minify by putting CSS URL (eg: xyz.css) in the pertaining section.

5. FORCE LAZYlOAD LINK TAG CSS:-

For all the files that consume excessive data, with the help of the W3SpeedUp Plugin you can easily Force Lazyload those files, for instance (FontAwesome.CSS or Icon’s CSS).

6. LOAD SECONDARY CSS:-

Apart from Critical CSS, The W3SpeedUp Plugin loads all minified CSS after page load.

7. DELAY SECONDARY CSS BY:-

Apart from Critical CSS, The W3SpeedUp Plugin loads all minified CSS after 5 to 10 seconds or mouse move.

8. COMBINE GOOGLE FONTS BY:-

The W3SpeedUp Plugin load & combine all google fonts which are loaded on your site.

9. DELAY GOOGLE FONTS BY:-

The W3SpeedUp Plugin loads all google fonts after 0.1 to 8 seconds which are loaded on your site.

10. EXCLUDE PAGE FROM LOAD COMBINED CSS:-

The W3SpeedUp Plugin excludes the pages in which the minified CSS & Critical CSS are not loaded.

11. CUSTOM CSS TO LOAD WITH PRELOAD CSS:-

If we wish to preload any style tag CSS is added in this section without a style tag.

JavaScript Optimization

1. ENABLE JS MINIFICATION:-

The W3SpeedUp Plugin provides JS Minification.

2. EXCLUDE JAVASCRIPT TAGS FROM COMBINE:-

With the W3SpeedUp Plugin you can easily exclude JS files for all the pages you do not wish to Lazy Load and JS Minify by putting JS URL (eg: xyz.js) in the pertaining section

3. PRELOAD CUSTOM JAVASCRIPT:-

If we wish to preload any script tag JS added in this section without script tag.

4. EXCLUDE INLINE JAVASCRIPT FROM COMBINE:-

Simply put any specific word if you wish to exclude it from the Script Tag JS.

5. FORCE LAZY LOAD JAVASCRIPT:-

Put the specific word for Force Lazy Load JavaScript which takes a lot of time to load (Eg. Facebook/Instagram) and reduces the score.

6. LOAD COMBINED JAVASCRIPT:-

The W3SpeedUp Plugin loads all minified JS after page load.

7. DELAY INTERNAL JAVASCRIPT TAGS BY:-

The W3SpeedUp Plugin loads all minified JS after 5 to 10 seconds or mouse move.

8. EXCLUDE PAGE FROM JAVASCRIPT OPTIMIZATION:-

With the W3SpeedUp Plugin, you can easily exclude pages from JS Minification which you do not wish to LazyLoad and JS Minify by putting page URL (eg: /XYZ/) in the pertaining section.

9. CUSTOM JAVASCRIPT:-

If we wish to load any script tag JS added in this section without script tag which is loaded after page loads or mouse move.

Image Optimization

WW3SpeedUp provides more options than any other plugin when it comes to optimizing the size and delivery of images. Let us take a look at how you can optimize the images of your website with W3SpeedUp.

Lazy Load Images, Videos and Iframes

You can enable lazy loading of images, videos, and Iframes for your website in just a click with W3SpeedUp. Navigate to W3SpeedUp plugin settings, go to the JavaScript tab and then check the “Enable lazy loading Images” checkbox to enable lazy loading of images on your website. You can check the “Enable lazy loading Iframe” checkbox to lazy load Iframes for your website. And, you can check the “Enable lazy loading Video”checkbox to lazy load videos for your website.

You can also choose to automatically optimize images for speedy delivery whenever you upload them. To do this, check the “Automatically optimize images on upload” checkbox in the JavaScript tab of W3SpeedUp plugin settings.

You can also choose to lazy load images, videos and Iframes that are below the landing screen, after a specified height in pixels. You can specify the height in pixels below which you want to lazy load images, videos and Iframes so that any images, videos, or Iframes appearing above the specified height, in pixels, are not lazy-loaded but loaded normally. Specify the height in pixels in the “Start Lazy Loading images, videos, Iframes below the screen” box in the General tab of the W3SpeedUp plugin settings.

You can also exclude images from lazy loading by specifying the images name in the “Exclude Images from Lazy Loading” box in the General tab of the W3SpeedUp plugin settings. Make sure that there is one image name in one line and then press enter and mention the second image name in the second line and so on.

WebP support and Image quality settings

WebP is a modern image format for the web that employs both lossy and lossless compression. WebP lossless images are 26% smaller in size as compared to PNG images. This reduces the size of your web pages and helps deliver them faster to the visitors.

You can enable WebP support for PNG and JPG images by checking both in the “Enable WebP support” option in the General tab of the W3SpeedUp plugin settings.

You can specify the image quality you want to maintain, out of 100, for WebP, JPG, and PNG images. You can specify the values in the “WebP image quality” and “JPG PNG image quality” boxes in the General tab of the W3SpeedUp plugin settings.

Note: if you put the value as 100, the images will be shown in original quality but if you specify the value as say 70, then you’ll see a 30% reduction in the size of images on your web pages. This reduces the size of your web pages and makes them load faster.

Image Optimization

You can optimize the images uploaded to your WordPress website so that they are delivered in perfect dimensions and sizes. Simply go to the Image Optimization tab in W3SpeedUp plugin settings and then enter the image source link from the WordPress Media page. Once you’ve entered the image source link, mention the image width that you want to maintain and then click on the ‘Start Image Optimization’ button. Your selected images will be optimized with best size and dimensions so that they do not put unnecessary burden on server resources.

Plugin Hooks

Change value of main plugin variable

W3speedup_customize_add_settings

If you wish to change in variables and path (URL), W3SpeedUP Plugin allows you to make changes in variables and path with the help of this plugin function. You can either add that function in the function.php or in the plugin itself.


function W3speedup_customize_add_settings(){
	//Write your code here//
}

Disable webp to render from htacess

w3_disable_htaccess_wepb

Our plugin converts .jpg/.png format to WebP format without changing the URL. If you wish to change the URL (like xyz.pngw3.webp), you can use this function in the plugin. You can either add that function in the function.php or in the plugin itself.



function w3_disable_htaccess_wepb($path){
if(!empty($_REQUEST['//Path//'])){
return true;
}
return false;
}

Change html of page before start of optimization

w3speedup_before_start_optimization

W3SpeedUP Plugin allows you to make changes to the HTML on your site before actually starting the optimization. You can either add that function in the function.php or in the plugin itself.



function w3speedup_before_start_optimization($html){
// write your code here.//
return $html
} 

Change html of page after optimization is done

w3speedup_after_optimization

W3SpeedUP Plugin allows you to make changes to the HTML on your site after optimization. You can either add that function in the function.php or in the plugin itself.



function w3speedup_after_optimization($html){
//write your code here.
return $html
} 

Exclude pages from generating critical css

w3_no_critical_css

W3SpeedUP Plugin allows you to exclude the pages from the Critical CSS (like search pages)You can either add that function in the function.php or in the plugin itself.



function w3_no_critical_css($url){
if(!empty($_REQUEST['//Path//'])){
return true;
}
return false;
}

Exclude pages from optimization dynamically

W3speedup_exclude_page_optimization

W3SpeedUP Plugin allows you to exclude the pages from the Optimization if you wish to exclude your pages from optimization (like cart/login pages). You can either add that function in the function.php or in the plugin itself.



function W3speedup_exclude_page_optimization($url){
if(!empty($_REQUEST['//Path//'])){
return true;
}
return false;
}

Exclude from generating srcset

W3_disable_srcset

W3SpeedUP Plugin allows you to exclude generating srcset from images. You can either add that function in the function.php or in the plugin itself.



function W3_disable_srcset{
//write code here //
}

Exclude image from lazy load dynamically

w3speedup_image_exclude_lazyload

W3SpeedUP Plugin allows you to exclude the images from optimization which you don’t want to lazyload dynamically. You can either add that function in the function.php or in the plugin itself.



function w3speedup_image_exclude_lazyload($path){
if(!empty($_REQUEST['//Path//'])){
return true;
}
return false;
}

Post type to create critical separately

w3_create_separate_critical_css_of_post_type

If you wish to generate separate critical CSS for post. W3SpeedUP Plugin allows you to create critical CSS separately post-wise. You can either add that function in the function.php or in the plugin itself.



function w3_create_separate_critical_css_of_post_type($path){
if(!empty($_REQUEST['//Post_type//'])){
return true;
}
return false;
}

Categories to create critical css separately

W3_create_separate_critical_css_of_category

If you wish to generate separate critical CSS for category. W3SpeedUP Plugin allows you to create critical CSS of separately category-wise. W3SpeedUP Plugin allows you to create critical CSS separately. You can either add that function in the function.php or in the plugin itself.



function W3_create_separate_critical_css_of_category($path){
if(!empty($_REQUEST['//category_type//'])){
return true;
}
return false;
}

Exclude javascript files from plugin to make any changes

W3speedup_exclude_internal_js_w3_changes

Our plugin makes changes in JavaScript file for optimization if you do not want to make any changes in JavaScript file, W3SpeedUP Plugin allows you to exclude JavaScript files from the plugin to make any changes. You can either add that function in the function.php or in the plugin itself.



function W3speedup_exclude_internal_js_w3_changes ($path,$js){
if(strpos($path,'//js path//') !== false){
return false;
}
return true;
}

Make changes in javascript files

W3speedup_internal_js_customize

If you wish to make changes in JavaScript file, W3SpeedUP Plugin allows you to make changes in JavaScript Files. You can either add that function in the function.php or in the plugin itself.



function w3speedup_internal_js_customize($html,$path){
if(strpos($path,'//js path//') !== false){
$html = str_replace('','',$html);
}
return $html;
}

Exclude javascript from minify only

W3speedup_internal_js_minify

If you wish to exclude any JavaScript file from minify, W3SpeedUP Plugin allows you to exclude JavaScript from minify only. You can either add that function in the function.php or in the plugin itself.



function w3speedup_internal_js_minify($path,$js){
if(strpos($path,'//js path//') !== false){
return false;
}
return true;
}

Customize script object while minify and combine

W3speedup_customize_script_object

W3SpeedUP Plugin allows you to customize script object while minify and combine. You can either add that function in the function.php or in the plugin itself.

Exclude javascript files from optimization dynamically

W3speedup_exclude_javascript_filter

If you want to exclude JavaScript file from optimization, W3SpeedUP Plugin allows you to exclude JavaScript files from optimization. You can either add that function in the function.php or in the plugin itself.



function W3speedup_exclude_javascript_filter($path,$js){
if(strpos($path,'//jsPath//') !== false){
return false;
}
return true;
}

Make changes in external javascript urls.

W3_external_javascript_customize

If you want to make changes in your external JavaScript before optimization, W3SpeedUP Plugin allows you to make changes in external JavaScript URLs. You can either add that function in the function.php or in the plugin itself.



function W3_external_javascript_customize($path,$js){
if(strpos($path,'//js path//') !== false){
$html = str_replace('','',$html);
}
return true;
}

Make changes in inline javascript script tags.

W3speedup_inner_js_customize

If you want to make changes in your inline JavaScript before optimization, W3SpeedUP Plugin allows you to make changes in Inline JavaScript before optimization. You can either add that function in the function.php or in the plugin itself.



function w3speedup_inner_js_customize($html){
if(strpos($html,'//unique word from script//') !== false){
$html = str_replace('','',$html);
}
return $html;
}

Make changes in stylesheet files

W3speedup_internal_css_customize

If you want to make changes in your CSS file before optimization, W3SpeedUP Plugin allows you to make changes in stylesheet files before optimization. You can either add that function in the function.php or in the plugin itself.



function w3speedup_internal_css_customize($html,$path){
if(strpos($path,' //cssPath // ') !== false){
$html = str_replace('','',$html);
}
return $html;
}

Exclude stylesheet files from minify only

W3speedup_internal_css_minify

If you don’t want to minify, W3SpeedUP Plugin allows you to exclude stylesheet files from minify only. You can either add that function in the function.php or in the plugin itself.



function w3speedup_internal_css_minify($path,$css){
if(strpos($path,'//cssPath//') !== false){
return false;
}
return true;
}

Dynamically force defer of stylesheet files

W3_customize_force_lazyload_css

If you wish to Force Lazyload CSS files, for instance (FontAwesome.CSS or Icon’s CSS), you can do so with the W3SpeedUP Plugin, it allows you to dynamically force lazyload stylesheet files. You can either add that function in the function.php or in the plugin itself.



function W3_customize_force_lazyload_css($path,$css){
if(strpos($path,'//cssPath//') !== false){
return false;
}
return true;
}

Customize critical css filenames

W3speedup_customize_critical_css_filename

If you wish to make any changes in Critical CSS filename, W3SpeedUP Plugin allows you to change in critical CSS file names. You can either add that function in the function.php or in the plugin itself.



function W3speedup_customize_critical_css_filename($critical_css_filename){
//write code here//
}

Make changes in generated critical css

w3speedup_customize_critical_css

If you wish to make any changes in Critical CSS, W3SpeedUP Plugin allows you to make changes in generated Critical CSS. You can either add that function in the function.php or in the plugin itself.



function w3speedup_customize_critical_css($critical_css){
$critical_css = str_replace('','',$critical_css);
return $critical_css;
}

Work with us at No Risk.

We guarantee to speed up WordPress in the given timeframe. You will get a 100% refund if you are not satisfied with our work So, what are you waiting for?

+1-775-234-8474

Request FREE Consultation

Need Proof of Our Work?

Just Click on the button and it will take you to the client’s review page.

Our Client Review