Optimization Features

WP Rocket features info and troubleshooting.

General dependencies exclusions for Delay JavaScript execution

This article contains a list of general dependencies exclusions to be used in cases when the Delay JavaScript execution feature triggers any of the related JavaScript errors.jQuery is not defined /jquery(-migrate)?-?([0-9.]+)?(.min|.slim|.slim.min)?.js(?(.*))?( |'|"|>|$) f.hoverIntent is not a function /wp-includes/js/hoverIntent.min.js imagesLoaded is not…

How often is the cache cleared?

This article lists the scenarios and actions for which WP Rocket automatically runs full cache deletion and partial cache deletion, as well as instructions on how to disable automatic cache clearing.In this article When does WP Rocket clear the cache?…

LazyLoad for CSS background images

WP Rocket includes the LazyLoad for CSS background images feature, which is in charge of deferring the background images inserted via internal styles and CSS files. This helps the page to load faster because the background images will be loaded…

LazyLoad for iframes and videos

This article covers information about the LazyLoad for iframes and videos option in the Media tab.What it does LazyLoad delays the loading of iframes on your website until the user scrolls down the page, reaches the section where the iframes…

LazyLoad for images

LazyLoad delays the loading of images on your website until the user scrolls down the page and actually needs to see them. LazyLoad addresses the Google PageSpeed recommendation to Defer offscreen images. We do this in an SEO-friendly way, as…

LazyLoad plugin compatibility

We automatically exclude LazyLoad for the following plugins/scripts to ensure compatibility: Envira gallery Justified Image Grid Meta Slider Meta Slider Pro Really Simple Captcha Timthumb SoliloquyIncompatible plugins These plugins are incompatible with our LazyLoad feature: YITH WooCommerce Zoom Magnifier

List of pre_get_rocket_option_{option_name} filters

WP Rocket's pre_get_rocket_option_{option_name} filters can be used to programmatically activate and deactivate WP Rocket's options, or to apply bulk changes to WP Rocket settings based on any conditions you apply. Heads up! This guide is for advanced users comfortable with…