Scripts and styles tab
Defer and delay JavaScript, critical scripts, click replay, critical CSS (automatic or manual), CSS minify and combine, and font loading in TurboCache.
TurboCache → Settings → Scripts and styles works only in Full functionality mode.
Scripts
- Optimize loading (default on) — defer scripts so they never block rendering.
- Delay until interaction (default on, timeout 0) — non-critical scripts load on the first scroll, mouse move or tap, or after the timeout in seconds (0 = only on interaction). The biggest score gain. jQuery, Divi and WordPress core scripts are never delayed.
- jQuery ready shim (default on) — hold jQuery “ready” handlers until delayed scripts have loaded.
- Interaction delays — Animation 1000 ms, Scroll replay 500 ms, Click replay 250 ms. A click made before scripts loaded is replayed once they have.
- Click replay exclusions — CSS selectors whose first click must not be replayed.
- Critical scripts — never delayed (deferred only). Match by URL part, script id or inline content. Defaults include jQuery, Divi theme and builder scripts, WordPress core packages and WooCommerce. Divi and core are also built in.
- Always delay — trackers, chats and widgets: Google Analytics/Tag Manager, Facebook, Hotjar, Clarity, YouTube iframe API, reCAPTCHA, social widgets, ads, Mailchimp, Intercom, Crisp, Tawk.to, Zendesk, Disqus and more.
- Skip — scripts left completely untouched.
- Minify inline scripts (default off) — conservative comment and whitespace removal.
Styles
- Optimize loading (default on) — inline critical CSS and load the rest without blocking rendering.
- Critical CSS (default Automatic) — Automatic (self-learning) splits each stylesheet per page template: rules whose selectors exist on the page are inlined, the rest deferred; learned once per template in the background. Manual inlines the CSS you paste and defers every stylesheet. Off leaves stylesheets render-blocking.
- Inline critical CSS (default on) — inline in
<head>up to 150 KB, otherwise link a file. - Delay non-critical CSS (default off) — load deferred stylesheets only after the first interaction (or 3 seconds).
- Manual critical CSS — used when Critical CSS is Manual.
- Always critical — selector fragments kept in the critical part because scripts toggle them: Divi menus, mobile menu, toggles, sliders, tabs, accordions, galleries, lightboxes, animations, sticky elements and the logo.
- Combine (default off) — merge local stylesheets into one file. Usually unnecessary with HTTP/2.
- Minify (default on) — stylesheets and inline styles.
- Skip — stylesheets left untouched. Defaults:
et-fb,et_pb_ab,admin-bar,dashicons.
Fonts
- Font display (default on) —
font-display: swap, so text shows immediately in a fallback font. - Preload fonts — font file URLs used above the fold, one per line.
- Google Fonts (default off) — remove Google Fonts requests entirely. Only if fonts are self-hosted or system fonts are fine.
A menu, slider or form that needs two taps after optimisation usually means one of its scripts is being delayed. Add it to Critical scripts. Step-by-step: Divi mobile menu needs two taps.
Did this answer the question? No — open a support request