Divi 5 Performance
Use this skill when optimizing Divi 5 site performance, improving Core Web Vitals (LCP, INP, CLS), reducing render-blocking CSS, working with Divi's Critical…
Skill by Kieransaunders
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kieransaunders-divi-5-performance
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/divi-5-performance
What's inside
- Skill name
Divi 5 Performance- Description
- Use this skill when optimizing Divi 5 site performance, improving Core Web Vitals (LCP, INP, CLS), reducing render-blocking CSS, working with Divi's Critical CSS / Dynamic CSS / Inline Stylesheet system, configuring font loading (WOFF2, preload, font-display), lazy-loading background images, preloading above-the-fold images, debugging slow Divi pages, or auditing cache-plugin interactions (WP Rocket RUCSS, LiteSpeed, Autoptimize, Perfmatters). Covers Divi 5.6's per-page component CSS, Section 5.5 Aspect Ratio for CLS prevention, and the per-module helper class pattern for lazy-loading.
- License
- MIT
- Instructions
- 257 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
- name: "Divi 5 Performance" does not match folder "divi5-performance"
Files (5)
- NOTICE.md
- SKILL.md
- critical-css.css · examples/
- font-loading.css · examples/
- core-web-vitals.md · references/
SKILL.md (first lines)
# Divi 5 Performance Optimization
**Divi 5 Version:** 5.6.0 (May 2026)
**Core Web Vitals targets:** LCP < 2.5s, INP < 200ms, CLS < 0.1
## Overview
Divi 5 was rebuilt for performance. The Dynamic Framework breaks the monolithic Divi stylesheet into hundreds of small per-module components and assembles a unique per-page stylesheet on demand — pages that use 5 modules only ship the CSS for those 5 modules. Combined with Critical CSS extraction (inlined above-the-fold styles) and Inline Stylesheets (eliminates an external CSS request), Divi 5 removes all render-blocking CSS by default.
What this skill covers: the configuration knobs, the CSS patterns that make Divi 5's pipeline work well, and the integration patterns with third-party performance plugins.
## The Divi 5 Performance Pipeline
Three Theme Options work together. Enable in: **Divi → Theme Options → Builder → Advanced → Performance**.
| Option | What it does | When to disable |
|--------|--------------|-----------------|
| **Dynamic CSS** | Per-page stylesheet with only the CSS for modules used on that page. Replaces the monolithic `style.css`. | Only if a plugin specifically requires the full stylesheet — almost never |
| **Critical CSS** | Auto-extracts above-the-fold CSS, inlines it in `<head>`, defers the rest with `<link rel="preload" ... onload>`. | If a cache plugin's own Critical CSS is running (avoid double-work) |
| **Inline Stylesheets** | Inlines the small per-page CSS file in `<head>` instead of loading via `<link>`. Removes one render-blocking request. | If your stylesheet is unusually large (>50KB inlined hurts more than it helps) |
**Verification:** View source on a frontend page. You should see no `<link rel="stylesheet">` blocking the parser — only inline `<style>` tags and deferred preloads. Run Lighthouse and confirm "Eliminate render-blocking resources" is not flagged.
## Core Web Vitals: What Hurts You in Divi 5
### LCP (Largest Contentful Paint) — target < 2.5s
The LCP element is almost always a hero image, hero heading, or hero video poster. Top causes of slow LCP on Divi sites:
1. **Hero image not preloaded** — Divi doesn't auto-preload above-the-fold images. Fix: add `<link rel="preload" as="image" href="...">` for the hero image (Theme Builder header or a `wp_head` hook).
2. **Lazy-loaded hero image** — `loading="lazy"` on the LCP image delays it past the LCP window. Fix: set `loading="eager"` and `fetchpriority="high"` on the hero image, or exclude it from lazy-load plugins.
3. **Render-blocking fonts** — Web fonts blocking text paint. Fix: host locally, preload the heading font, set `font-display: swap`.
4. **Background image as LCP** — Browsers don't preload CSS background images. If your hero uses a `background-image`, either preload it manually or move it to an `<img>` element.
### INP (Interaction to Next Paint) — target < 200ms
Replaced FID in March 2024. Measures the slowest interaction on the page. Divi-specific causes:
1. **Heavy JavaScript on first interaction** — Divi's jQuery, slider scripts, animation scripts. Fix: enable Divi's "Defer jQuery" option, defer non-critical Divi scripts.
2. **Long animation chains** — Stagger animations on scroll/click can block the main thread. Fix: use CSS animations (compositor-only properties) instead of jQuery effects.
3. **Live filter/search modules** — Heavy DOM manipulation. Fix: debounce, paginate results.
### CLS (Cumulative Layout Shift) — target < 0.1
Divi 5.5 added **Aspect Ratio** settings on all image elements specifically to prevent CLS. Use them.
1. **Images without intrinsic dimensions** — image renders, layout shifts when dimensions settle. Fix: set Aspect Ratio (5.5+) on all images, or set explicit `width`/`height` attributes.
2. **Web font swap shift** — text shifts when web font loads. Fix: use `size-adjust`, `ascent-override`, `descent-override` on `@font-face` to match fallback metrics. Or use `font-display: optional`.
3. **Dynamic content injection** — ads, related posts, comments. Fix: reserve space with `min-height` or `aspect-ratio`.
4. **Sticky modules** — `position: sticky` headers that pop in. Fix: apply sticky CSS server-side, not via JS.
## Critical CSS Strategy
Divi 5's auto-Critical CSS works for most pages. When to override:
### When to write your own Critical CSS
- Above-the-fold uses heavy `@font-face`, `clip-path`, or custom keyframes that the auto-extractor misses
- Theme Builder header has dynamic content the extractor can't analyze statically
- You need cross-page critical CSS (header, nav, footer-skeleton)
### How to add hand-crafted Critical CSS
Put it in **Theme Options → Custom CSS** (loads in `<head>` early enough to be critical). Keep it lean: ≤14KB compressed is the magic number (one TCP roundtrip).
```css
/* Critical CSS — render the hero before any external CSS loads */
.et_pb_section_0,
.et_pb_section.hero-section {
background: linear-gradient(180deg, #0a1929 0%, #1a3a5c 100%);
padding: 6rem 0 4rem !important;
}
.hero-section h1 {
font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
color: #ffffff !important;
margin: 0 0 1rem;
}
.hero-section .et_pb_button {
background: #ff6b35 !important;
border-color: #ff6b35 !important;
padding: 1rem 2rem !important;
}
```
See `${CLAUDE_PLUGIN_ROOT}/skills/divi5-performance/examples/critical-css.css` for full template.
## Font Loading Strategy
Default Divi behavior loads Google Fonts via external request. This costs LCP and CLS. **Always host fonts locally** for production.
### Steps
1. **Disable Google Fonts in Divi** — Theme Options → General → Use Google Fonts → No
2. **Download only used weights** from google-webfonts-helper or Google Fonts
3. **Convert to WOFF2** (smallest format, broad support)
4. **Define in CSS:**
```css
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap; /* show fallback immediately */
src: url('/wp-content/fonts/inter-400.woff2') format('woff2');
/* Metric overrides to reduce CLS on swap */
size-adjust: 107%;
ascent-override: 90%;
descent-override: 22%;
}
```
5. **Preload the heading font** (the one in the LCP element):
```html
<link rel="preload" href="/wp-content/fonts/inter-700.woff2" as="font" type="font/woff2" crossorigin>
```From Kieransaunders/D5G, MIT.
More from Kieransaunders/D5G
- 0.474score
divi5-extract-style
Kieransaunders
Divi 5 style extraction and variables tool: (1) brand guide / design tokens into importable Divi 5 Global Variables JSON; (2) an existing Divi 5 page export…
SkillCFreshness: CClaude Code +9 - 0.474score
divitheatre-engine
Kieransaunders
Theatre.js (@theatre/core 0.7.0) reference for building and debugging the DiviTheatre WordPress plugin's animation engine and motion presets.
SkillCFreshness: CClaude Code +9 - 0.474score
divi5-style-check
Kieransaunders
Divi 5 style consistency auditor — compares an original designer Divi 5 export against a newly generated page JSON and verifies that presets, colours, and…
SkillCFreshness: CClaude Code +9 - 0.474score
divi5-theme-builder
Kieransaunders
Build Divi 5 Theme Builder templates (header/body/footer layouts scoped by post type or taxonomy) with dynamic-content bindings — the record/detail pages…
SkillCFreshness: CClaude Code +9 - 0.474score
divi5-variables-from-styleguide
Kieransaunders
Convert a brand style guide (prose) or a design-token table/JSON (Figma tokens, CSV, tokens.json) into a Divi 5 importable Global Variables file: a single…
SkillCFreshness: CClaude Code +9 - 0.474score
design-review
Kieransaunders
Divi 5 layout reviewer — audits any Divi 5 JSON export against structural rules, SEO requirements, and a design checklist.
SkillCFreshness: CClaude Code +9 - 0.474score
divi5-services-section
Kieransaunders
Free Divi 5 services section generator - creates an importable, pre-validated 3-column services section (icon, title, description per service) as Divi 5…
SkillCFreshness: CClaude Code +9 - 0.474score
claude-design-to-divi
Kieransaunders
Turn a Claude Design hand-off into an importable Divi 5 page.
SkillCFreshness: CClaude Code +9 - 0.474score
divi5-page-generator
Kieransaunders
Divi 5 page and section generator — SEO-optimised, preset-driven, validated.
SkillCFreshness: CClaude Code +9 - 0.471score
Divi 5 Compatibility
Kieransaunders
Use this skill when validating CSS for Divi 5 / Divi 5.6 compatibility, checking unsupported features or units, troubleshooting Divi CSS that isn't applying…
SkillCFreshness: CClaude Code +9 - 0.470score
divi5-deploy
Kieransaunders
Deploy generated Divi 5 content to any WordPress site (local or hosted) via the Divi5 Generator REST API — publish pages/sections as live pages, preview them…
SkillCFreshness: CClaude Code +9 - 0.469score
launch-app
Kieransaunders
Launch the Divi 5 Generator app.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 16, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Kieransaunders/D5G
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Kieransaunders
- 0.474score
divi5-page-generator
Kieransaunders
Divi 5 page and section generator — SEO-optimised, preset-driven, validated.
SkillCFreshness: CClaude Code +9 - 0.474score
divi5-extract-style
Kieransaunders
Divi 5 style extraction and variables tool: (1) brand guide / design tokens into importable Divi 5 Global Variables JSON; (2) an existing Divi 5 page export…
SkillCFreshness: CClaude Code +9 - 0.474score
divi5-services-section
Kieransaunders
Free Divi 5 services section generator - creates an importable, pre-validated 3-column services section (icon, title, description per service) as Divi 5…
SkillCFreshness: CClaude Code +9 - 0.474score
claude-design-to-divi
Kieransaunders
Turn a Claude Design hand-off into an importable Divi 5 page.
SkillCFreshness: CClaude Code +9 - 0.474score
design-review
Kieransaunders
Divi 5 layout reviewer — audits any Divi 5 JSON export against structural rules, SEO requirements, and a design checklist.
SkillCFreshness: CClaude Code +9 - 0.474score
divi5-style-check
Kieransaunders
Divi 5 style consistency auditor — compares an original designer Divi 5 export against a newly generated page JSON and verifies that presets, colours, and…
SkillCFreshness: CClaude Code +9
Cite this page
Divi 5 Performance skill. Agent Mart. https://agentmart.dev/skills/kieransaunders-divi-5-performance (last updated 2026-10-24)