{"id":6,"date":"2026-10-25T10:19:20","date_gmt":"2026-10-25T10:19:20","guid":{"rendered":"https:\/\/zeroconfigwp.com\/blog\/?p=6"},"modified":"2026-10-25T10:19:20","modified_gmt":"2026-10-25T10:19:20","slug":"wp-rocket-broke-my-site-find-setting","status":"publish","type":"post","link":"https:\/\/zeroconfigwp.com\/blog\/wp-rocket-broke-my-site-find-setting\/","title":{"rendered":"WP Rocket broke my site: how to find the setting that did it"},"content":{"rendered":"<p>When WP Rocket breaks a page, a slider or a form, the cause can be a single setting, such as Delay JavaScript execution. You do not need to guess which checkbox to untick. Turn Delay JavaScript on with the other file optimisation options off and check the page. If the problem shows up, turn Delay JavaScript off and check again. If it goes away, you have found the cause.<\/p>\n<p>WP Rocket&#8217;s own troubleshooting guide describes this test. It also says to fix any existing browser console errors first, because they can interfere with the test. Then decide whether the problem is cosmetic (an element shows up late) or functional (a form or slider does not work). For functional problems, exclude the affected script rather than switching the whole feature off.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/zeroconfigwp.com\/blog\/wp-content\/uploads\/2026\/10\/wp-rocket-setting-test-steps.jpg\" alt=\"Three-step illustration: a switch turned on, a web page with a checkmark, and a switch turned off with a checkmark\" width=\"1200\" height=\"896\" loading=\"lazy\"><\/figure>\n<h2>Step 1: Confirm the setting is the cause<\/h2>\n<ol>\n<li>In WP Rocket, turn on Delay JavaScript execution and turn off the other File Optimization options.<\/li>\n<li>Check the page. If the problem does not show up, Delay JavaScript execution is probably not the cause.<\/li>\n<li>If the problem does show up, turn Delay JavaScript execution off and check the page again. If the problem is gone, the feature is the cause.<\/li>\n<\/ol>\n<h2>Step 2: Decide what kind of problem it is<\/h2>\n<p>WP Rocket&#8217;s guide gives two priorities for cosmetic problems. You can exclude the affected scripts for the best visual experience, which costs speed. Or you can keep the scripts delayed for the best speed, and accept that visitors may have to wait or interact before some elements appear. For layout or functional problems, the guide says to exclude the affected files.<\/p>\n<h2>Step 3: Find the script to exclude<\/h2>\n<p>The guide suggests these ways to find it:<\/p>\n<ul>\n<li>Use the one-click exclusions, or add the script&#8217;s URL or a matching pattern to the Excluded JavaScript Files box.<\/li>\n<li>Inspect the broken element to find its class. Then open the page with <code>?nowprocket<\/code> added to the address, which bypasses WP Rocket&#8217;s optimisations, and use the browser&#8217;s developer tools Search tab to find the scripts that mention that class.<\/li>\n<li>Use process of elimination, and narrow the exclusions down one script at a time.<\/li>\n<\/ul>\n<p>Safe Mode is a last resort. It excludes most scripts, which removes much of the speed benefit.<\/p>\n<h2>If you are removing WP Rocket<\/h2>\n<p>Uninstalling from the WordPress admin, WP Rocket says it cleans up after itself: it removes its files and folders and its changes to <code>.htaccess<\/code> and <code>wp-config.php<\/code>. The uninstall page does not say whether cron events, database tables or options are removed too, so check those afterwards.<\/p>\n<p>If you delete the plugin folder by hand, the guide lists these steps. Back up the whole site first, because they cannot be undone.<\/p>\n<ul>\n<li>Delete <code>wp-content\/advanced-cache.php<\/code>.<\/li>\n<li>In <code>.htaccess<\/code>, remove everything between <code>#BEGIN WP ROCKET<\/code> and <code>#END WP ROCKET<\/code>.<\/li>\n<li>In <code>wp-config.php<\/code>, set <code>WP_CACHE<\/code> to false or delete that line.<\/li>\n<li>Delete the cache folders, starting with <code>wp-content\/cache\/<\/code> and <code>wp-content\/wp-rocket-config\/<\/code>.<\/li>\n<li>Remove WP Rocket&#8217;s cron events. WP Crontrol lets you search for &#8220;rocket&#8221; in its Cron Events tab.<\/li>\n<li>Remove WP Rocket&#8217;s database tables and its rows in the options table. The uninstall guide lists them, so check its list rather than deleting by name guesses.<\/li>\n<\/ul>\n<h2>Where ZeroConfig fits<\/h2>\n<p>If you would rather not choose these settings yourself, ZeroConfig has one switch and no settings to tune. Its Safety Check loads your home page, a post and a page with and without each feature. If a feature causes a new JavaScript error or changes the layout by more than 8 % of the screen, that one feature is switched off, the rest stay on, and the plugin tells you why. ZeroConfig is in beta, and it is free for one site.<\/p>\n<p>Running two optimisers is slower than running one, and they fight over the same files. Deactivate WP Rocket before you turn ZeroConfig on. For a side-by-side look at the two, see <a href=\"\/compare\/wp-rocket\">ZeroConfig vs WP Rocket<\/a>, and for how the Safety Check works, see <a href=\"https:\/\/zeroconfigwp.com\/#safety\">the Safety Check section<\/a>.<\/p>\n<h2>Sources<\/h2>\n<ul>\n<li>WP Rocket, &#8220;Troubleshoot Delay JavaScript execution issues&#8221;, last updated 19 January 2026, checked 25 October 2026: <a href=\"https:\/\/docs.wp-rocket.me\/article\/1655-troubleshoot-delay-javascript-execution-issues\">docs.wp-rocket.me<\/a><\/li>\n<li>WP Rocket, &#8220;Uninstalling WP Rocket&#8221;, last updated 12 June 2026, checked 25 October 2026: <a href=\"https:\/\/docs.wp-rocket.me\/article\/694-uninstalling-wp-rocket\">docs.wp-rocket.me<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>When WP Rocket breaks a layout, slider or form, one setting can be the cause, such as Delay JavaScript execution. Here is how to find it without guessing, which scripts to exclude, and how to remove WP Rocket cleanly.<\/p>\n","protected":false},"author":0,"featured_media":8,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides"],"_links":{"self":[{"href":"https:\/\/zeroconfigwp.com\/blog\/wp-json\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zeroconfigwp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zeroconfigwp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/zeroconfigwp.com\/blog\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":1,"href":"https:\/\/zeroconfigwp.com\/blog\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":10,"href":"https:\/\/zeroconfigwp.com\/blog\/wp-json\/wp\/v2\/posts\/6\/revisions\/10"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zeroconfigwp.com\/blog\/wp-json\/wp\/v2\/media\/8"}],"wp:attachment":[{"href":"https:\/\/zeroconfigwp.com\/blog\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zeroconfigwp.com\/blog\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zeroconfigwp.com\/blog\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}