Skip to content

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

See the deals

Content tab

HTML minify and markup fixes, WebP/AVIF images, lazy loading, adaptive image sizes, YouTube and Vimeo facades, compatibility shims and database cleanup.

3 min read · Updated 5 November 2026

TurboCache → Settings → Content. Everything except Database applies in Full functionality mode only.

HTML

  • Minify HTML (default on) — collapse whitespace between tags.
  • Cleanup — Remove HTML comments (on), Remove emoji script (on), Disable WordPress embeds (off), Remove ?ver= from static files (off).
  • Early paint (default off) — lets the browser skip layout of off-screen Divi sections while scripts load (content-visibility).
  • Fix markup (default Off) — Lite normalises tags and stray paragraphs, Medium also balances unclosed blocks, Tidy is a full repair using the PHP tidy extension. Test first with the HTML checker on the Manage screen.
  • Replacements — one per line, search => replacement; the search can be a @regex@i. Applied to the raw page before anything else, e.g. fixing leftover http:// links.

Images

  • Compression — WebP (on), AVIF (off), Quality 80 (30–100). Copies are stored next to the original (for example photo.jpg.webp) and only used when smaller.
  • Delivery (default <picture> element) — <picture> element (recommended) lets the browser pick AVIF → WebP → original with no server rules. Same URL, negotiated by the server keeps image URLs unchanged and picks the format per request (best for CSS backgrounds and external embeds). Rewrite to WebP directly gives the smallest markup; AVIF is not used.
  • Background conversion (default on) — convert images found on pages in the background queue.
  • Existing media — Convert media library now converts JPEG/PNG attachments in batches (select Continue between batches). New uploads are converted automatically.

Lazy loading

  • Images (default on) — load images as they approach the viewport.
  • Method (default Own script) — Own script adds sized placeholders (no layout shift), background images and a smooth appear; Native browser attribute only adds loading="lazy".
  • Keep first images eager (default 1, 0–10) — protects the largest above-the-fold image (LCP).
  • Never lazy-load — class names or URL parts: et_pb_menu, et_pb_fullwidth_header, logo, no-lazy, skip-lazy.
  • Background images (default on) — lazy-load inline background images of Divi sections and rows.
  • Missing sizes (default on) — add width and height to images without them.
  • Exclude images — never touched at all.

Adaptive sizes

Adaptive images (default off) generates width variants (default widths 2160, 1920, 1366, 992, 768, 480, 360 — only those smaller than the original) and adds srcset/sizes, also as WebP/AVIF. Divi column widths are detected for the sizes hint. Backgrounds (off) also adapts inline background images; Respect device pixel ratio is on.

Videos and frames

  • Lazy-load frames (default on) — maps, forms and other iframes load when visible.
  • Video facades (YouTube and Vimeo, both on) — show the thumbnail with a play button; the real player loads on click.
  • Exclude frames — iframes left alone.

Compatibility

Shims are small markup and runtime fixes that keep widgets working with deferred and delayed scripts and lazy loading. Each applies only when the page contains the target. All are on by default: Divi core, Divi animations, Divi sliders, Divi video backgrounds, Divi sticky / menus, WooCommerce, Contact Form 7, Gravity Forms, WPForms, reCAPTCHA / hCaptcha, Elementor, Swiper, Slick, Owl Carousel, Slider Revolution, Lottie and GTranslate / Weglot. Exclude blocks lists class or id fragments whose blocks are left untouched.

Database

  • Weekly cleanup (default off) — clean the database once a week.
  • Tasks — post revisions (keeping 5 per post), auto-drafts, trashed posts, spam and trashed comments, expired transients (all on) and optimise tables (off). The number in brackets is how many items would be removed now.
  • Run now — Clean database now runs the ticked tasks immediately and reports the counts.
  • Heartbeat API (default Slow, 60 s) — Default, Slow or Disable outside the editor. This applies whether or not weekly cleanup is on.

Deleting trashed posts and spam is permanent. Take a database backup before your first cleanup.

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