feat(critical-css): agregar TOC y CTA Let's Talk a CSS crítico
- Agregar campo is_critical a schemas table-of-contents.json y cta-lets-talk.json - Cambiar generateCSS() de private a public en TableOfContentsRenderer y CtaLetsTalkRenderer - Registrar table-of-contents y cta-lets-talk en CRITICAL_RENDERERS - Ahora 6 componentes inyectan CSS crítico inline en <head> Componentes críticos: - top-notification-bar - navbar - cta-lets-talk (NUEVO) - hero - featured-image - table-of-contents (NUEVO) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -42,6 +42,13 @@
|
||||
"pages": "Solo páginas"
|
||||
},
|
||||
"description": "Define en qué páginas se mostrará el botón"
|
||||
},
|
||||
"is_critical": {
|
||||
"type": "boolean",
|
||||
"label": "CSS Crítico",
|
||||
"default": true,
|
||||
"editable": true,
|
||||
"description": "Inyectar CSS inline en <head> para optimizar LCP (componente above-the-fold)"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -35,6 +35,13 @@
|
||||
"editable": true,
|
||||
"options": ["all", "posts", "pages"],
|
||||
"description": "Tipos de contenido donde se muestra"
|
||||
},
|
||||
"is_critical": {
|
||||
"type": "boolean",
|
||||
"label": "CSS Crítico",
|
||||
"default": true,
|
||||
"editable": true,
|
||||
"description": "Inyectar CSS inline en <head> para optimizar LCP (componente above-the-fold)"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user