TechDec 7, 2025AI Keeps Forgetting That Astro Scoped CSS Does Not Apply to JavaScript-Generated ElementsAstro's `<style>` tags compile to scoped CSS, but that scope does not apply to DOM elements created dynamically in JavaScript. Here is how to work around it.AstroCSSAIAI-Driven Development
TechDec 7, 2025Lightweight YouTube Embeds in Astro: Lazy Loading with a Rehype PluginThe official YouTube embed code is heavy. I built a custom rehype plugin to show thumbnails first and load the iframe only on click.AstroYouTubePerformancerehypeJavaScript