Remove Code From Specific Pages
This advanced feature allows you to remove unused scripts that are being loaded from specific pages. Please use this feature with caution.
Check Enable Helper
Check the Enable helper
checkbox within Divi Engine
> Divi Minify
and then the Save Changes
button at the bottom of the page.
Identify Files
- Visit the page where you want to exclude scripts and stylesheets and click on
NitroMinify
on the top right corner of the page - Copy the file names that you want to exclude
Add Files Into Except Queue
- Edit the page in the WordPress backend (don't use the Divi Visual Builder)
- Add the name of the JavaScript files in the
JS files to remove from the page
field and add the CSS file names in theCSS files to remove from the page
field. You can enter multiple names seperated by commas (,). You can find them under theRemove Scripts
section - Update the page.
Verify Exclusions
Go to the frontend of the page again and click NitroMinify
to make sure the files are no longer loading on the page. This will speed up the loading of this page since the scripts and stylesheets will not be loaded.