In this Article
Exclude specific scripts
Exclude all inline scripts
It can be useful to quickly exclude all inline scripts while troubleshooting, to check if the issue you're facing is related to inline scripts at all. To exclude them all, add the following in the exclusion field:
Certain patterns of exclusions cannot be handled and are automatically removed.
If you add them, you should see a notice with the "WP Rocket: The following patterns are invalid and have been removed" message.
Please see more in our Invalid patterns of exclusions article.
In this example, we refer specifically to using the Chrome browser.
Open Developer Tools. You do that either by right-clicking and choosing Inspect Element, or at the top of the window go to: View→Developer→Developer Tools
Find the red error message indicator on the right-hand side:
Click it to open the Console, then click the file referenced in the error notice:
This takes you directly to the code in the file that is related to the error. Look for the red underline and copy part of that code:
Open a new browser tab and load the uncached version of the page. You do that by adding ?nowprocket to the URL—this will load an uncached, unminified version of the page. It is necessary in order to find the original URLs of the files.
An uncached URL would look something like:
Open Developer Tools in the new browser, then click on the Console:
Paste the following code in the Console:(snippet found here)
Press enter to populate the console with all scripts, including inline scripts in red: