Performance: Creating and editing posts
MEDIUM IMPACT
This affects page load speed and interaction responsiveness when users create or edit posts in the WordPress admin interface.
Use lazy loading for media previews and code splitting to load editor scripts only when needed.
Loading all block editor scripts and media previews synchronously on page load without lazy loading or code splitting.
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Loading all editor scripts and media previews upfront | High (many nodes) | Multiple reflows per media load | High paint cost due to images | [X] Bad |
| Lazy loading media previews and code splitting editor scripts | Moderate (only visible nodes) | Single reflow on initial load | Lower paint cost | [OK] Good |