Overview - Why Astro ships zero JavaScript by default
What is it?
Astro is a modern web framework that builds websites with very little or no JavaScript sent to the browser by default. It focuses on delivering only the essential HTML and CSS needed for the page to display, avoiding extra JavaScript unless explicitly added. This means pages load faster and use less data, improving user experience especially on slow connections.
Why it matters
JavaScript can slow down websites because browsers must download, parse, and run it before the page fully works. Without Astro's approach, many sites send lots of JavaScript even if it is not needed immediately, causing delays and frustration. By shipping zero JavaScript by default, Astro solves this problem, making websites faster, lighter, and more accessible to everyone.
Where it fits
Before learning this, you should understand basic web development concepts like HTML, CSS, and JavaScript. After this, you can explore how to add interactivity in Astro with JavaScript only when needed, and how to optimize web performance further.
