Skip to content

v3.5.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:27
· 13 commits to main since this release
Immutable release. Only release title and notes can be modified.
370b1ae

Unhead 3.5 focuses on performance and correctness, especially when the browser picks up where the server left off.

⚡ Less work during hydration

A page can arrive with a large inline stylesheet that Unhead never needs to update. Unhead now skips building a lookup key from that CSS unless a client tag needs it. That made first hydration 23% faster in our Nuxt-style benchmark. Benchmark results

🌱 Experimental Lazy Mode

If the server already rendered all head tags your page needs, you can try the experimental lazy head. It queues changes until you call head.load(). It’s available for Vue, React, Svelte, Solid and vanilla JavaScript. Lazy head API

This work also opens the door to compiled mode. That’s an opt-in approach we’re exploring for a future release, where the build prepares head tags ahead of time.

Changelog

   🚀 Features

   🐞 Bug Fixes

   🏎 Performance

    View changes on GitHub