How to Exclude Scripts from Minification and Lazy Loading in WP Rocket: A Step-by-Step Guide
A Quick Guide to Preserve Functionality and Prevent Conflicts in WP Rocket
Step 1: Install and Activate WP Rocket:
Before you can start excluding scripts, you need to have WP Rocket installed and activated on your WordPress website. You can purchase and download the plugin from the official WP Rocket website, or install it directly from your WordPress dashboard by searching for "WP Rocket" in the plugins section.
Step 2: Access WP Rocket Settings:
Once WP Rocket is installed and activated, navigate to your WordPress dashboard and click on "Settings" in the left-hand menu. You will now see a new option called "WP Rocket." Click on it to access the plugin settings.
Step 3: Go to the File Optimization Tab:
In the WP Rocket settings, locate and click on the "File Optimization" tab. This is where you'll find options related to minification.
(gif from wp-rocket)
Step 5: Identify the Scripts to Exclude:
Step 6: Enter Paths or Filenames:
Step 7: Save Changes:
After entering the paths or filenames, scroll down to the bottom of the page and click the "Save Changes" button to apply the exclusions.