Skip to content
Launch offer 50% off your first year of Keel Pro. See prices →

Troubleshooting

A page looks broken after turning on minify or delay scripts

Confirm the cause in a minute, find which setting it is, keep the speed gain and exclude only the one script or file that needs it.

4 minutes read · Updated November 28, 2026

Combining and delaying scripts gives a big speed boost, but a few scripts do not like being moved, joined or made to wait. When a slider, menu, form, cookie banner or chat widget stops working right after you changed a speed setting, here is how to fix it in a few minutes without giving up the speed gain.

1. Confirm it is an optimisation

Add ?keel_nooptimize=1 to the end of the page address, for example:

https://example.com/contact/?keel_nooptimize=1

The page loads without Keel’s minify, combine and delay. If it works now, one of those settings is the cause. If it is still broken, the problem lies elsewhere: a plugin update, a theme change or a caching layer.

2. Find which setting

Turn these off one at a time, in this order, and test the page after each. Keel clears the cache when you save, so you see the change straight away.

  1. Combine JavaScript files (Speed › Minify & combine). The most likely cause by far.
  2. Delay third-party scripts (Speed › Delay scripts). Likely when a widget, chat, banner or tracking stops working.
  3. Minify JavaScript.
  4. Combine CSS files and Minify CSS, if the layout looks wrong rather than something not working.
  5. Minify HTML, rarely the cause, but possible with unusual inline code.

3. Exclude only the file that needs it

Once you know the setting, turn it back on and exclude just the problem file.

Minify and combine

Add part of the file name to Leave these files alone, separated by spaces, for example slider.js recaptcha. Or press Browse and tick the file or its whole plugin folder. Matching files are never minified or combined.

Delay scripts

Either remove the matching line from Delay scripts containing, or add the attribute data-no-delay to the script tag if you control it. Scripts that must run immediately, like a cookie banner the law requires before tracking, belong here.

Finding the file name

  1. Open the broken page (without ?keel_nooptimize=1).
  2. Press F12 to open the developer tools and go to the Console tab.
  3. Red errors usually name the script that failed, or the function that was missing because its script was delayed or combined in the wrong order.
  4. The file’s address shows which plugin it belongs to: /wp-content/plugins/plugin-name/....

Common culprits

Symptom Usual cause
Slider or carousel shows all slides stacked Combined JavaScript; exclude the slider’s script.
Menu does not open on phones Combined or delayed theme script; exclude it.
Cookie banner appears late or not at all Delayed; remove its pattern from the delay list.
Form does not submit, or captcha missing Delayed or combined form/captcha script.
Checkout or payment fields missing Payment scripts must never be combined or delayed.
Fonts or icons look wrong Combined CSS with unusual paths; exclude that stylesheet.
Combining JavaScript is never on by default, and Simple view never turns it on. It is the setting most worth testing carefully on every important page, including checkout.

Still broken?

Send us the page address and the red console error. Pro customers can use Account › Support; everyone else, the contact page.

Every setting on this screen

The same explanations you see next to each setting in Keel.

Keel › Speed › Minify & combine

Setting What it does
Minify HTML (Pro) Removes comments and collapses spaces and line breaks in the page itself. Text inside <pre>, <textarea>, scripts and styles is never touched, so nothing looks different.
Minify CSS (Pro) Strips comments and spaces from stylesheets of your theme and plugins. Files that are already minified (.min.css) are left as they are.
Combine CSS files (Pro) Joins neighbouring stylesheets into one file, keeping their order. Image and font paths inside them are rewritten so they keep working.
Minify JavaScript (Pro) Removes comments and extra spaces from scripts that are not minified already. Line breaks are kept, which keeps it safe, but test the site afterwards.
Combine JavaScript files (Pro) Joins neighbouring scripts into one file in the same order. Inline scripts, async/defer and module scripts are left in place. Test forms, sliders and menus after turning this on.
Leave these files alone (Pro) Parts of file names separated by spaces, e.g. "recaptcha slider.js", or tick files and folders with Browse. Matching files are never minified or combined. Add ?keel_nooptimize=1 to any page address to see it without these optimizations.

Keel › Speed › Delay scripts

Setting What it does
Delay third-party scripts (Pro) Usually the biggest speed-score gain after caching. Delayed scripts run in their original order. Check that chat and tracking still work after turning it on; a visit that leaves without any interaction may not be counted in analytics until the time below has passed.
Delay scripts containing (Pro) One per line. Matched against the script address, or the code of inline scripts. Browse adds the site's own script files. Add data-no-delay to a script tag to never delay it.
Run them anyway after (seconds) (Pro) 0 waits for an interaction no matter how long. 10 keeps analytics counting visitors who only read.
Still stuck?

Pro customers: use Support in your account. Everyone else: write to us, we read everything.

Contact

Five minutes from now

Give your site a keel.

Steady when traffic spikes, calm when attacks come, found when people search. Start free; go Pro when a site needs more.