Skip to content

Black Friday 50% off your first year on all premium plugins and the Suite.

See the deals

Layout or scripts broken after optimisation

A menu, slider, form or layout misbehaves after TurboCache optimises it: test mode, critical scripts, skip lists and critical CSS fixes.

1 min read · Updated 5 November 2026

Find the culprit safely

  1. Turn on Test mode on the CDN and advanced tab. Visitors get untouched pages while you experiment as an administrator.
  2. Open the page, then the browser console, and look for errors.
  3. Change one setting at a time; saving re-optimises affected pages in the background. Use Revalidate this page from the toolbar to speed it up.

Symptoms and fixes

  • Menu, slider or form only works after a second click — a script it needs is delayed. Add part of its file name or handle to Critical scripts.
  • Something breaks completely — add the script to Skip (Scripts) so it is left untouched.
  • Flash of unstyled content, or a dropdown/toggle unstyled on first open — add the element’s class fragment to Always critical, or set Critical CSS to Manual or Off.
  • A stylesheet misbehaves — add it to Skip under Styles.
  • An image is missing or late — add its class or file name to Never lazy-load, or raise Keep first images eager.
  • A whole block should be left alone — add its class or id to Exclude blocks on the Content tab, or add data-no-optimize or data-skip-lazy to the element.
  • Only one page or section is affected — create a content group with different settings just for it.
  • Layout broken everywhere — make sure Divi’s own performance options are off, then try Only cache mode to confirm the cache itself is fine.

Old browsers

Internet Explorer and old Safari versions get an untouched copy through the compatibility view, so you do not need to cater for them in your optimisation settings.

Did this answer the question? No — open a support request