justbetter/laravel-http3earlyhints
A Laravel package for HTTP/3 Early Hints that lets your app send 103 Early Hints responses, preloading critical assets and improving perceived page load performance with minimal configuration.
103 Early Hints from the Laravel origin, letting the browser preload CSS/JS/fonts while the app is still rendering. That is a lever on FCP/LCP for server-rendered, asset-heavy pages — not a new user-facing feature, but a measurable "speed" initiative you can scope and defend.serializable_classes addition matters if your platform enforces an allowlist for cache unserialization (a hardening pattern). It means the package can participate in that policy rather than forcing an exception — relevant to security-reviewed stacks.Consider it when all of the following hold:
Look elsewhere when:
To executives: "A small, free add-on that lets our servers start sending key assets to the browser a few hundred milliseconds earlier. It's a low-cost experiment on page-speed metrics we already report, with a one-line rollback if it doesn't show up in the data."
To engineering: "It's a Laravel middleware package for HTTP/3 Early Hints. Latest release (1.5.3) adds Laravel 13 compatibility and a serializable_classes option, so it fits our upgrade path and our cache-serialization allowlist. Scope is narrow: it emits 103 preload hints, nothing else. Work is in the plumbing — confirming our proxy passes 103, defining which assets to hint, and instrumenting RUM so we can prove impact. Success is a measured LCP/FCP improvement on the target cohort; kill criteria are no measurable delta after N weeks, or any regression/interference from the extra middleware."
To security/ops: "No new data stores or network egress; it only adds an interim response header on existing requests. The serialization change means it now respects an explicit class allowlist rather than requiring an exemption — we should confirm the config semantics against PR #8 before enabling it."
How can I help you explore Laravel packages today?