github unjs/unhead v3.5.0

one hour ago

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

Don't miss a new unhead release

NewReleases is sending notifications on new releases.