Skip to main content

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.

Enable Helper in Nitro Minify page

Identify Files

  1. Visit the page where you want to exclude scripts and stylesheets and click on NitroMinify on the top right corner of the page
    click NitroMinify
  2. Copy the file names that you want to exclude
    copy script name

Add Files Into Except Queue

  1. Edit the page in the WordPress backend (don't use the Divi Visual Builder)
  2. Add the name of the JavaScript files in the JS files to remove from the page field and add the CSS file names in the CSS files to remove from the page field. You can enter multiple names seperated by commas (,). You can find them under the Remove Scripts section
    remove scripts
  3. 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.

After Removal