惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
D
DataBreaches.Net
C
Check Point Blog
雷峰网
雷峰网
小众软件
小众软件
GbyAI
GbyAI
美团技术团队
P
Proofpoint News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
MyScale Blog
MyScale Blog
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
Apple Machine Learning Research
Apple Machine Learning Research
Y
Y Combinator Blog
Jina AI
Jina AI
爱范儿
爱范儿
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog
I
InfoQ
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美

The Astro Blog

Astro 6.4 Astro 6.3 Starlight 0.39 Astro 6.2 What's new in Astro - April 2026 What's new in Astro - March 2026 Astro 6.1 CloudCannon Joins Astro as an Official CMS Partner Astro 6.0 What's new in Astro - February 2026 What's new in Astro - January 2026 Astro 5.17 Supporting the future of Astro The Astro Technology Company joins Cloudflare Astro 6 Beta What's new in Astro - December 2025 What's new in Astro - November 2025 Astro 5.16 Stainless Sponsors Astro, Launches Astro-Powered Docs Platform What's new in Astro - October 2025 Astro 5.15 Spirit of Astro: meet the winning designs What's new in Astro - September 2025 Astro 5.14 Cloudflare Donates $150,000 to Support Astro's Open Source Mission Webflow Donates $150,000 to Support Astro's Open Source Mission Mux: Our Official Video Partner Unleashing creativity: How CodeTV built a video streaming platform with Astro and Mux | Astro What's new in Astro - August 2025 Astro 5.13
Astro 3.4: Page Partials
Erika, Matthew Phillips · 2023-10-26 · via The Astro Blog

Astro 3.4 is out and features support for page partials, a new experimental dev overlay, and more.

  • Page partials
  • Image optimization performance
  • Dev overlay (experimental)

To take advantage of the latest features, make sure you’re running the latest version of Astro. You can upgrade to Astro 3.4 by running the upgrade command for your package manager of choice:

npm install astro@latest

pnpm upgrade astro --latest

yarn upgrade astro --latest

Page Partials

A page component can now be identified as a partial page, which will render its HTML content without including a <!DOCTYPE html> declaration nor any <head> content.

Partials are best used in conjunction with a rendering library, like htmx or Stimulus that is built around fetching HTML fragments.

You can mark any page as a partial by setting the partial option in the component frontmatter.

---

export const partial = true;

---

<li>This is a single list item.</li>

This will result in the following HTML output:

<li>This is a single list item.</li>

.astro files as well as any other page file type that can export a value (e.g. .mdx) can be marked as partials.

Read more about page partials in our documentation, and check out this TodoMVC example using Astro page partials and htmx.

Image Component Performance

Astro now generates optimized images concurrently at build time for static sites, which can significantly speed up build times for sites with many images.

Additionally, Astro will now reuse the same buffer for all variants of an image. This should improve performance for websites with many variants of the same image, especially when using remote images.

No code changes are required to take advantage of these improvements.

Dev Overlay (experimental)

The dev overlay showing x-ray mode with a client component highlighted. It shows the client directive being used, and the props passed to the component.

A new experimental dev overlay is available in 3.4 that allows you to inspect your page islands, see helpful audits on performance and accessibility, and more. A Dev Overlay Plugin API is also included to allow you to add new features and third-party integrations to it.

This release is focused on the plugin API so that integration authors can begin testing it out and provide feedback. The built-in features are limited at the moment, but be on the lookout for expanded capabilities in upcoming releases!

You can enable access to the dev overlay and its API by adding the following flag to your Astro config:

export default {

experimental: {

devOverlay: true

}

};

Read the Dev Overlay Plugin API documentation for information about building your own plugins to integrate with Astro’s dev overlay.

Bug Fixes

Additional bug fixes are included in this release. Check out the release notes to learn more.