drupal-lazy-builders
Installation
SKILL.md
Drupal Lazy Builders
Lazy builders defer rendering of dynamic/personalized content, enabling page caching while preserving dynamic elements.
When to Use
- Displaying user-specific data (name, cart, notifications)
- Content with
sessionorusercache context - Fixing UNCACHEABLE pages caused by max-age:0
- Improving authenticated user performance
How It Works
Page renders → Placeholder inserted → Page cached →
Request → Cached page served → Placeholder replaced with fresh content