BFS10

Getting Started

Getting Started

Introduction

Installing W3Speedster

There are two W3Speedster installation options: Automatic or Manual.

Download W3Speedster

Once you have bought W3Speedster, you can download the zip file from your W3Speedster account page. or to use free version you can download it from plugins option in your Dashboard

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 W3Speedster, 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’:

document-img

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

Automatic Installation

Automatic installation is the easiest way to install W3Speedster.

To do it, log in to your WordPress admin panel and go to Plugin > Add New and click on Upload Plugin. Or just search for w3speedster and click on install.

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 W3speedster panel.

Manual Installation

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

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

Updating W3Speedster

There are two ways to update W3Speedster: 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 W3Speedster 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 W3Speedster manually.

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

Once you have downloaded W3Speedster 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 W3Speedster.
  2. Go to Plugins > Add new > Upload, upload the new .zip file, and activate your new W3Speedster version.

Update notification is missing

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

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

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

Getting Started with W3Speedster

The first thing you’ll want to do once you’ve activated W3Speedster is: Run an ON/OFF test with W3Speedster’s default settings, and see how much faster your site has become already! You’ll be able to see the improvement in loading time W3Speedster 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 W3Speedster?

There isn’t one recommended configuration of W3Speedster 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 W3Speedster:
  • HTML Caching
  • 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 W3Speedster:
HTML Cache
  • HTML caching
  • Minify HTML
  • Cache Preload
  • URL Exclusion
‘General’ Tab
  • License Key
  • CDN URL
  • CDN Exclusion
  • Leverage Browsing Cache
  • Gzip Compression
  • Query parameter
  • INP Issues
  • Cache Path
‘CSS’ Tab
  • CSS Minification
  • Combine Google Fonts
  • Critical Css
  • CLS Fixes
‘JavaScript’ Tab
  • JavaScript Minification
  • Combine (concatenate) JavaScript
  • Load URL
‘Exclusion’ Tab
  • JavaScript Minification
  • Preload Resources
  • Exclude Image
  • Exclude Pages
  • Exclude CSS
  • Lazy Load
  • Exclude JS
Custom Code
  • Custom Css and JS Code
‘Cache’ tab
  • HTML Cache
  • CSS/JS Cache
  • Critical CSS Cache
Image Settings
  • Image Optimization
  • Image Size Adjustment
  • Lazy Loading
  • WebP Support
  • Image Quality Control
‘Hooks’ Tab
  • Predefined PHP function
‘Web Vitals Log’ Tab
  • Core Web Vitals Log

Can’t upload/install W3Speedster

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

“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 W3Speedster 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 W3Speedster 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

document-img

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 W3Speedster do?

W3Speedster is a WordPress performance optimization plugin with many features:

  • CDN Integration
  • HTML Caching
  • 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 W3Speedster

W3Speedster 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 W3Speedster as any other plugin from the WordPress admin Dashboard. W3Speedster 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 W3Speedster 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-speedster-config/ folders
  • Delete the /wp-content/advanced-cache.php file
  • Edit the .htaccess file, removing anything between #BEGIN W3SPEEDSTERand #END W3SPEEDSTER
  • Edit the wp-config.php file, setting the define(‘WP_CACHE’, true) to false or removing the line
  • Delete the w3speedster_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 W3Speedster. 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 W3Speedster 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 W3Speedster, 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

HTML Cache

HTML cache helps us to enable HTML minification, it servers cache via .htaccess and advanced cache files, preloading cache page per minute

General

You can enable optimization to streamline your site's resources and improve loading times. Separating the cache ensures that different versions of your site, such as mobile and desktop, are stored and served efficiently. Integrating a Content Delivery Network (CDN) helps distribute your site's content across multiple servers, speeding up delivery to users worldwide. Enabling Gzip compression reduces the size of your site's files, further improving load times. Fixing Interactive Next Paint (INP) issues enhances your site's interactivity and responsiveness. Additionally, you can remove query parameters to simplify URLs and improve caching effectiveness.

CSS > CSS Optimization

You can enable CSS Minification so that W3Speedster 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 W3Speedster 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.

Exclusion

You can preload resources such as CSS and font files to ensure they load quickly when a user visits your site. You can exclude specific images from lazy loading to ensure they display immediately. Additionally, you have the ability to exclude certain pages, CSS, and JavaScript files from optimization if needed. For resources that consume significant data, you can also force lazy loading of CSS and JavaScript to improve initial page load times.

Custom Code

You can Write custom JS/CSS code which we need to load at the time of site loading. This allows you to apply specific styles and functionalities right from the start, ensuring that your custom code is executed immediately as your website loads.

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.
Hooks

You can write predefined custom PHP functions to perform the tasks mentioned above. This allows you to automate and customize various aspects of your site's optimization, such as loading resources, excluding elements from optimization, and managing caching. By using PHP, you can tailor these functionalities to fit your specific needs and ensure they are executed efficiently.

HTML Cache

Enable HTML Caching

Turning on HTML caching allows the W3Speedster Plugin to store and reuse static versions of your web pages. This reduces the need for generating pages dynamically each time they are requested, resulting in faster page load times and reduced server load. It is especially useful for improving performance and efficiency on high-traffic sites.

Enable Caching for Logged-in Users

Enabling this option allows caching of pages for users who are logged in. This can help improve performance for logged-in users by reducing the time it takes to generate pages dynamically. However, it’s important to ensure that the caching setup properly handles personalized content to avoid displaying incorrect or outdated information to users.

Serve HTML Cache File by

.htaccess: This option allows you to configure your server to serve HTML cache files directly using the .htaccess file. This method can improve page load times by delivering cached versions of your pages more efficiently. Advanced Cache File: The "Advanced Cache File" setting refers to additional configuration options for managing and optimizing cache files. This may include more granular control over caching rules, file expiration, or handling special cases to enhance performance and ensure proper cache management.

Enable Caching Page with GET Parameters

This option allows caching of pages that include GET parameters in their URLs. By enabling this, your server will cache and serve different versions of the page based on the parameters provided in the URL, such as example.com/page?param=value. This can improve performance by reusing cached versions for requests with the same parameters, but it’s important to ensure that caching is properly managed to handle dynamic content variations and avoid serving incorrect data.

Minify HTML

Enabling HTML minification reduces the size of your HTML files by removing unnecessary characters, such as whitespace, comments, and line breaks, without affecting the functionality or appearance of the content. This results in faster page load times and improved site performance by decreasing the amount of data that needs to be transferred between the server and the user's browser.

Cache Expiry Time

Set the time for cache expiry by entering a value in seconds. The default expiry time is 3600 seconds (1 hour). This determines how long cached content is stored before it is refreshed or cleared. Adjust this setting based on how frequently your content changes and your performance needs.

Separate Cache for Mobile

Enabling this option allows you to create and manage separate cache files for mobile users. This ensures that mobile-specific versions of your pages are cached and served separately from the desktop versions. This can improve performance and user experience by optimizing content and layout specifically for mobile devices.

Preload Caching

Preload caching involves generating and storing cached versions of your pages or resources before they are requested by users. This proactive approach ensures that cached content is available and served quickly when users access your site, improving page load times and overall performance. Preloading can be scheduled or triggered based on specific criteria, helping to optimize your site’s efficiency.

Preload Page Caching Per Minute

This feature allows you to automatically generate and update cached versions of your pages at regular intervals, such as every minute. By preloading page caching at these intervals, you ensure that the cached content remains fresh and up-to-date, providing users with the most current version of your site while maintaining fast load times. This approach helps balance performance with content accuracy.

Enable leverage browsing cache

The 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, which it automatically implements in your site.

URI/URL Exclusions

URI/URL exclusions allow you to specify certain URIs or URLs that should be excluded from caching processes. By listing these URIs or URLs, you can ensure that specific pages, resources, or sections of your site are not affected by caching rules. This can be useful for managing dynamic content, ensuring that personalized or sensitive information is always up-to-date, or preventing caching issues with certain areas of your site.

Enable Gzip compression

Our plugin offers an automatic feature to enable Gzip compression on your site. When activated, it compresses your site's files to reduce their size and improve load times. This functionality is implemented automatically but will only work on servers running Apache.

Remove query parameters

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

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.

General Settings

License Key

To use your licensed plugin, you must enter a license key. This key is unique for each product and is automatically generated when your plugin order is completed. You will find the key in the "Order Completed" email from W3Speedster. Activating the key ensures you receive updates and access to all plugin features.

Turn On Optimization

When you turn on this field, the W3Speedster Plugin will optimize your site by applying all the optimization settings. If this settings is turned off, no settings in w3speedster plugin will apply except html caching.

Optimize pages with Query parameters

This enables the optimization to be shown on the pages with query parameters when the optimization is live. For eg. https://www.example.com?nocache=1 will show optimized page if this setting is turned on. It is recommended only for servers with high performance.

Optimize pages when User Logged In

Enabling this option will optimize pages even when a user is logged in. Use this feature with caution, as it may affect the performance of dynamic or personalized content for logged-in users. Ensure that the optimization does not interfere with user-specific functionalities or content.

Separate javascript and CSS cache for mobile

This will create separate JavaScript and CSS cache for mobile. All css and javascript files will have mob.css at the end only for mobile(.css for desktop) and also separate Critical CSS will be created for Mobile and desktop.

Fix INP Issues

"Fix INP Issues" refers to addressing problems related to the "Interactive Next Paint" metric. By enabling this feature, you can resolve issues identified in Google PageSpeed Insights and/or Google Search Console related to the time it takes for your site to become fully interactive. This helps improve your website's performance and user experience.

CDN Settings

CDN URL

Enter the CDN (Content Delivery Network) URL that you have purchased for your site. This URL will be used to serve static assets like images, CSS, and JavaScript files, helping to improve your site's performance and load times by distributing content across multiple servers.

Exclude file extensions from cdn

During the implementation of the CDN, our plugin provides a section to exclude the specific extensions so that the functionality of site is not hampered, for instance, excluding ‘Font Extensions’ like (.woff, .ttf, .eot, .woff2) might be required because cross origin request for fonts are not allowed in many sites and allowing of fonts from external source has to done manually.

Exclude path from cdn

During the implementation of the CDN, our plugin provides a section to exclude the specific paths so that the work of the plugin is not hampered, for instance, excluding ‘/wp-includes/’.

Image Optimization

Optimize JPG/PNG Images

Enable image optimization by clicking the button. Once activated, images will be optimized in the background through wp-cron, provided the ‘Optimize Images via wp-cron’ option is enabled. This process helps improve your site’s performance by compressing images without losing quality.

JPG/PNG Image Quality

The W3Speedster Plugin maintains a standard image quality of 90% to preserve the clarity of your images. However, you can adjust this setting to meet your preferences, balancing image quality with file size according to your needs.

Convert to WebP

This feature will convert and render your images in the WebP format. To use it, make sure to start image optimization in the Image Optimization tab. The W3Speedster Plugin will handle the optimization for all JPG and PNG images, enhancing your site’s performance

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.

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.

Pixels to Load Resources Below the Viewport

The W3Speedster Plugin defaults to starting the loading of resources such as images, videos, iframes, background images, and audio when they are 200 pixels below the viewport. You can adjust this setting to start loading these resources earlier, so they appear more quickly as you scroll. For example, you can enter a value like 200 to set the distance from the viewport where loading begins.

Load SVG Inline Tag as URL

Load SVGs as URLs instead of inline tags to avoid creating large DOM elements. This approach helps improve performance by reducing the size of the DOM and simplifying your page structure.

Optimize Images via wp-cron

Enabling this option allows images to be optimized using wp-cron. The plugin will optimize one image attachment per minute to ensure that server performance remains unaffected. If you need faster optimization, click the "Start Optimization" button in the 'Image Optimization' tab to accelerate the process.

Optimize Images on the Go

This feature automatically optimizes images as site pages are crawled. The W3Speedster Plugin captures unconverted and unoptimized images when you visit a page and optimizes them in the background. This ensures that all images used on the site are prioritized for optimization. However, it is recommended to turn off this feature after the initial crawl and optimization to prevent unnecessary server load.

Automatically Optimize Images on Upload

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.

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.

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 image dimensions across different devices and screen sizes.

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.

CSS Optimization

Enable CSS Optimization

Enable this to start CSS optimiation. All css optimization like minification, critical css generation, custom css etc will show only when this option is turned on.

Combine Google fonts

The W3Speedster Plugin loads and combines all Google Fonts used on your site and loads it together preventing multiple requests. If critical css is generated, all required google fonts are loaded instantly and rest are lazyloaded ie. loads on user interaction. If you still want to load any font upfront and then you can write its css in custom css code section provided by the plugin.

Load Critical CSS

The W3Speedster Plugin generates Critical CSS which loads upfront and let all css files to load to user interaction enabling faster loading of the page.

Load Critical CSS in Style Tag

This option will load critical css in style tag instead of link tag. This option is not recommended for site with large page size. Implementing CDN will help a lot in speeding of site if this option is not enabled.

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

Start generating critical CSS

This feature creates critical CSS for your website to improve page load performance. Just click on the button, it will automatically crawl almost all the pages and create critical css on its own. Critical css generation is pretty fast like 10-15 mins but may take more time with site with thousand of pages. In the Free Version, critical CSS will be generated only for the homepage. With the Pro Version (activated license key), unlimited critical CSS can be generated for your entire site.

Load Style Tag in Head to Avoid CLS

This feature allows style tags to load in the head section, fixing the Cumulative Layout Shift (CLS) of the page. To use it, simply add the ID of each style tag in the provided box and save your changes. Ensure that each style tag ID is entered on a new line.

Javascript Optimization

Enable Javascript Optimization

Enable this box to start JavaScript minification, a feature provided by the W3Speedster Plugin that optimizes your site's performance.

Lazyload Javascript

This option allows you to choose when to load JavaScript on your site. Enabling lazy loading for JavaScript can improve your site's initial loading speed by deferring the loading of JavaScript files until they are needed. Select "Yes" to enable lazy loading, or "No" to load JavaScript files immediately with the rest of your site's content. This helps balance performance and functionality based on your site's needs.

Load Javascript Inline Script as URL

Enter the matching text of the inline script URLs that you want to exclude from deferring JavaScript. Each exclusion should be entered on a new line. This allows you to specify which inline scripts should not be deferred, ensuring they load immediately to maintain essential functionality.

Exclusions

Preload Resources

If you want to preload resources such as images, CSS, JavaScript, or fonts, simply enter the complete URL of each resource in the 'Preload Resources' section. Each URL should be on a separate line. This ensures that the specified resources are loaded ahead of time, which can improve your site's performance.

Exclude Images from Lazy Loading

To prevent specific images from being lazy-loaded, you can exclude them by providing their URL, class name, ID, or alt attribute in the designated section. For example, you can enter "xyz.png" for a specific image or "nolazy" for images with a particular class name. This allows those images to load normally while others benefit from lazy loading.

Force Lazy Load Javascript

To improve performance, you can force lazy loading for JavaScript which takes a long time to load. Enter specific words, IDs from inline script tags, or parts of script URLs in the provided section. For example, you might use identifiers like "Facebook" or "Instagram" to target and lazy load those scripts. This helps reduce loading times and improves your performance score.

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 other scripts benefit from optimization.

Exclude Inline JavaScript from Lazy Load

This feature allows you to exclude specific inline JavaScript from being lazy-loaded. For example, you might want to exclude scripts like ‘Google Analytics’ to ensure they load immediately and function correctly without delay. This helps maintain essential functionalities while still benefiting from lazy loading for other scripts.

Exclude pages from HTML caching

Excluding specific pages from HTML caching ensures that these pages are always fetched directly from the server rather than from a cache. This approach is particularly useful for pages with dynamic content that changes frequently, user-specific pages, and sections of your site that must always display the most current data.

Exclude Pages From Optimization

To exclude specific pages from optimization, simply enter their URLs in the designated section. For example, you can list pages like /cart or /login that you do not wish to optimize. This ensures that these pages are left out of the optimization process while the rest of your site benefits from performance improvements.

Exclude Pages from CSS Optimization

To exclude specific pages from CSS optimization, enter the URL or a part of the URL where you do not want the CSS optimization to be applied. List each URL or URL fragment on a separate line to ensure those pages are excluded from the optimization process.

Exclude Page from JavaScript Optimization

With the W3Speedster Plugin, you can exclude specific pages from JavaScript minification and lazy loading by entering the script URLs or parts of the script URLs. Simply list each URL or URL fragment on a separate line. This allows you to ensure that certain pages or scripts are not affected by the optimization process.

Custom Code

Custom CSS to Load on Page Load

If you wish to preload any custom CSS that should be applied immediately when the page loads, add it in this section without including the <style> tags. This CSS will only take effect when CSS optimization is enabled, ensuring that your custom styles are loaded efficiently along with the optimized CSS.

Custom JavaScript to Load on Page Load

If you wish to preload any JavaScript, add the code in this section without including the <script> tags. Enter the JavaScript code that needs to be loaded before the page fully loads. You have two options for loading:

  • As File: Loads the script as a file.
  • Defer: Defers loading of the script until after the initial page load.
Choose the appropriate method based on your requirements to ensure optimal performance and functionality.

Custom JavaScript to Load After Page Load

If you wish to load any JavaScript after the page has fully loaded or based on user interaction, add the code in this section without including the <script> tags. This JavaScript will be executed after the page load, ensuring it does not interfere with the initial rendering of the page. Enter the JavaScript code that should run post-page load in this section.

Cache

Delete HTML Cache

Delete the HTML cache whenever you make changes to your site to ensure that the latest updates are reflected. This helps maintain accurate and up-to-date content for your visitors.

Delete JS/CSS Cache

The plugin lets you delete the combined and minified cache for JavaScript and CSS. This ensures that any changes made to your theme or plugin files are updated and reflected on your site.

Delete Critical CSS

The W3Speedster WordPress plugin allows you to delete Critical CSS. This should be done only when you make changes to the styles used in the upper part of your webpage. Deleting Critical CSS will clear the cache and require regeneration, which may take some time depending on the number of pages on your site.

Enable Core Web Vitals Logs


Enabling Core Web Vitals logs allows you to track and record data related to the Core Web Vitals metrics, which include Largest Contentful Paint (LCP), First Input Delay (FID), and Cumulative Layout Shift (CLS). These metrics are essential for assessing your site's performance and user experience. By logging this data, you can analyze performance issues, identify areas for improvement, and make informed optimizations to enhance overall site performance and user satisfaction.

Import / Export

Import Settings

To import settings into the W3Speedster Plugin, enter the exported JSON code from the plugin's import/export page. This allows you to apply previously saved configuration settings to your current setup, ensuring consistency and saving time when transferring settings between different sites or environments.

Export Settings

To export your settings, copy the code provided on the W3Speedster Plugin’s export page and save it in a file. This allows you to back up your configuration or transfer it to another site, ensuring that your settings can be easily restored or applied in the future.