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. […]
Doc Category: Magento
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 […]
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 […]
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. […]
Force Lazy Load Link Tag CSS
To optimize files that consume excessive data, you can use the W3Speedster Plugin to force lazy loading for those CSS files. For example, you might want to lazy load files like FontAwesome.css or Icons.css. This helps improve performance by delaying the loading of these large CSS files until they are needed. […]
Exclude Link Tag CSS from Optimization
With the W3Speedster Plugin, you can exclude specific CSS files from lazy loading and minification by entering their URLs in the relevant section. For example, if you have a CSS file like xyz.css that you do not want to optimize, simply provide its URL to ensure it is left out of the optimization process. […]
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 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 […]
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. […]
Exclusions
[…]