Логотип Divi 5 Performance

Divi 5 Performance

Спільнота
cjsimon2
Divi 5 Performance

Використовуйте цю навичку для оптимізації продуктивності сайтів на Divi 5, покращення Core Web Vitals (LCP, INP, CLS), зменшення обсягу CSS, що блокує відображення, роботи із системою Divi Critical CSS / Dynamic CSS / Inline Stylesheet, налаштування завантаження шрифтів (WOFF2, попереднє завантаження, font-display, змінні шрифти з версії 5.9), відкладеного завантаження фонових зображень, попереднього завантаження зображень у верхній частині сторінки, діагностики повільних сторінок Divi або аудиту взаємодії плагінів кешування (WP Rocket RUCSS, LiteSpeed, Autoptimize, Perfmatters). Охоплює CSS компонентів для окремих сторінок у Divi 5, співвідношення сторін із версії 5.5 для запобігання CLS, вбудоване відкладене завантаження контенту нижче першого екрана та відкладене завантаження локальних відео з версії 5.10, а також шаблон допоміжного класу для кожного модуля для відкладеного завантаження.

Add to TypingMind

Огляд

Видавецьcjsimon2
РепозиторійDivi5-ToolKit
Назва навичкиDivi 5 Performance
Зірки
61
Форки
3
Файли в пакеті
3
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 3

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: cjsimon2. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Divi 5 Performance у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/cjsimon2/Divi5-ToolKit/tree/main/plugins/divi5-toolkit/skills/divi5-performance
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cjsimon2/Divi5-ToolKit.git /tmp/Divi5-ToolKit
mkdir -p .claude/skills
cp -r /tmp/Divi5-ToolKit/plugins/divi5-toolkit/skills/divi5-performance .claude/skills/cjsimon2-divi-5-performance
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Divi 5 Performance в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Divi 5 Performance, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Divi 5 Performance не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Divi 5 Performance Optimization

Divi 5 Version: 5.11.0 (August 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.

OptionWhat it doesWhen to disable
Dynamic CSSPer-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 CSSAuto-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 StylesheetsInlines 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.

Native lazy loading (5.10+)

Divi 5.10 added engine-level deferral, reducing the need for custom lazy-load work:

  • Below-the-fold modules load only when scrolled into view, detected at row granularity within sections.
  • Local MP4/WebM background/module videos are deferred until they enter the viewport.
  • Dynamic Assets generation is memoized, so repeated filter callbacks don't re-run.

On 5.10+, verify the built-in deferral covers your case before adding the IntersectionObserver helper-class pattern below. Also note two cache-related fixes worth updating for: intermittent disappearing styles (fixed across 5.8/5.9) and LiteSpeed purging entire entry sets per edit (fixed in 5.8).

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.

Variable fonts (5.9+): Divi supports the current Google Fonts collection including variable fonts. One variable WOFF2 replaces several static weight files — fewer requests, smaller total transfer when you use 3+ weights of a family. The same local-hosting steps below apply; download the variable axis file and declare font-weight: 100 900; in the @font-face rule.

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%;
}
  1. 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>

Add via wp_head action or Theme Builder header HTML block.

See ${CLAUDE_PLUGIN_ROOT}/skills/divi5-performance/examples/font-loading.css for full pattern.

Image Optimization

Lazy-load background images (Divi-specific)

Divi modules with background-image styles don't lazy-load by default — browsers can't see CSS background images until parse. Use a helper class to defer them:

css
/* In Theme Options → Custom CSS */
.et_pb_section.lazy-bg {
  background-image: none !important;
}

.et_pb_section.lazy-bg.is-visible {
  background-image: var(--bg-image) !important;
}
js
/* Add a tiny IntersectionObserver to flip the class */
const lazyBgEls = document.querySelectorAll('.lazy-bg');
const io = new IntersectionObserver((entries) => {
  entries.forEach((e) => {
    if (e.isIntersecting) {
      e.target.classList.add('is-visible');
      io.unobserve(e.target);
    }
  });
}, { rootMargin: '200px' });
lazyBgEls.forEach((el) => io.observe(el));

Or use Perfmatters (lazy-load CSS backgrounds setting) or WP Rocket's LazyLoad if you don't want custom JS.

Above-the-fold images: preload + eager

html
<!-- In Theme Builder header HTML or wp_head -->
<link rel="preload" as="image" href="/wp-content/uploads/hero.webp" fetchpriority="high">

In the Image Module's Advanced tab → Attributes, add fetchpriority="high" and loading="eager".

Aspect Ratio (Divi 5.5+) — eliminates CLS

For every image module, set Sizing → Aspect Ratio. The browser reserves space before the image loads, no shift on paint.

Use caseAspect Ratio
Hero banner21:9 or 16:9
Card thumbnail4:3 or 3:2
Product photo1:1
Portrait3:4 or 4:5

Cache Plugin Interactions

WP Rocket

SettingRecommendationNotes
File Optimization → Minify CSSOnCompatible
File Optimization → Remove Unused CSS (RUCSS)Off OR Safelist /et-cache/, .et_pb_*RUCSS removes Divi's Dynamic CSS, breaks site
File Optimization → Load CSS AsynchronouslyOff (Divi already handles this)Avoid double-work
Media → LazyLoad imagesOnExcludes already-eager images

LiteSpeed Cache

  • Enable Object Cache (Redis/Memcached)
  • ESI on Cart/Checkout for WooCommerce
  • CSS/JS Combine OFF for Divi 5 (per-page CSS already optimal)

Autoptimize

  • Generally avoid with Divi 5 — Divi's pipeline supersedes most Autoptimize features
  • If using: disable JS aggregation (Divi defers its own JS), disable CSS aggregation

Perfmatters

  • Most Divi-friendly performance plugin
  • Use for: lazy-load CSS backgrounds, script manager (disable WooCommerce JS on non-shop pages), preload links

Auditing Checklist

Before declaring a Divi site "fast":

  • Lighthouse Performance ≥ 90 on mobile (4G throttle)
  • LCP < 2.5s on hero page (test the heaviest landing page)
  • CLS < 0.1 across full page scroll
  • INP < 200ms on primary interaction (menu open, button click, form submit)
  • No render-blocking CSS in Coverage tab (Chrome DevTools)
  • No external Google Fonts requests in Network tab
  • Hero image is fetchpriority="high" and not lazy-loaded
  • All images have explicit width/height or Aspect Ratio
  • Total transferred page weight < 1.5MB (excluding video)
  • No JS errors in Console

Run the divi5-performance agent on a project for an automated walkthrough.

When Custom CSS Hurts Performance

PatternWhy it's slowFix
* selectors with expensive propertiesRepaints entire tree on layoutScope to specific elements
transform on transition: allTriggers all property transitionstransition: transform 0.3s only
box-shadow on hover via JSTriggers paintPre-define the shadow, only transition opacity of a pseudo-element
filter: blur() on large elementsGPU-heavyApply to small overlays, not full-section backgrounds
position: fixed with frequent layout updatesTriggers compositor layersUse will-change: transform and animate transform only
Web font as font-family fallback chain missLayout shift on swapSet size-adjust/ascent-override (see Font Loading section)

Common Misconfigurations

"Divi is slow because of jQuery"

Often blamed, rarely the cause in 5.x. Profile in DevTools Performance tab before blaming jQuery. Most "Divi is slow" issues are unoptimized images or external scripts (analytics, chat widgets, ad networks), not Divi itself.

"Critical CSS is breaking my site"

Divi's Critical CSS sometimes misses elements that render just below the fold on tablet. Symptoms: flash of unstyled content (FOUC) on a specific module. Fix: add that module's selectors to Theme Options → Custom CSS so they're loaded in the critical bucket.

"My PageSpeed score dropped after adding the Theme Builder header"

Theme Builder content is dynamically injected — Critical CSS may not include header styles. Add header CSS to Theme Options Custom CSS to make it critical.

Reference Files

  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-performance/examples/critical-css.css — Hand-crafted critical CSS template
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-performance/examples/font-loading.css — Local @font-face with CLS-prevention overrides
  • ${CLAUDE_PLUGIN_ROOT}/skills/divi5-performance/references/core-web-vitals.md — Full Core Web Vitals reference with Divi-specific causes and fixes

Resources

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Divi 5 Performance?

Використовуйте цю навичку для оптимізації продуктивності сайтів на Divi 5, покращення Core Web Vitals (LCP, INP, CLS), зменшення обсягу CSS, що блокує відображення, роботи із системою Divi Critical CSS / Dynamic CSS / Inline Stylesheet, налаштування завантаження шрифтів (WOFF2, попереднє завантаження, font-display, змінні шрифти з версії 5.9), відкладеного завантаження фонових зображень, попереднього завантаження зображень у верхній частині сторінки, діагностики повільних сторінок Divi або аудиту взаємодії плагінів кешування (WP Rocket RUCSS, LiteSpeed, Autoptimize, Perfmatters). Охоплює CS...

Навіщо використовувати Divi 5 Performance у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Divi 5 Performance — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Divi 5 Performance у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/cjsimon2/Divi5-ToolKit/tree/main/plugins/divi5-toolkit/skills/divi5-performance. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Divi 5 Performance?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Divi 5 Performance?

Зі скількома забажаєте. У TypingMind ви можете використовувати Divi 5 Performance із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Divi 5 Performance?

На GitHub цю навичку публікує cjsimon2. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇