Ladybird alpha: how a brand-new browser engine asks for images and video
Alex GusevWeโve been waiting for this one for a long time. The Ladybird alpha is finally out, and weโre genuinely happy about it. New browsers come out all the time. A new browser with its own engine is rare.
Almost every browser people use today runs on one of three engines. Chrome, Edge, Opera, Brave and a long list of others are built on Blink. Safari runs on WebKit, and Firefox runs on Gecko. A new Chromium-based browser can have a different interface, different privacy defaults and a different business model, but under the hood it renders the web the way Chrome does. Ladybird is different. Its engine was written from scratch rather than forked from any of the three, and itโs built by an independent non-profit.
That matters more than it might sound. A web standard is only proven when engines written by different people read it the same way. When one engine dominates, its quirks quietly become the standard. A browser built from the specs up keeps everyone honest and brings real competition back to the web.
It matters to us directly, too.
Uploadcare serves images, video and audio to every browser, and much of what a CDN does depends on how the browser asks:
which formats it lists in Accept, whether it sends Client Hints, whether it makes range requests.
A new engine is a new client on the other end of every request, so we pointed Ladybird at a test server and watched what it did.
We tested Ladybird 2026.47.7 for macOS on Apple Silicon, running on an M4 MacBook Air.
How Ladybird asks for an image
Our test image had no file extension, and the server picked its format from the Accept header.
Hereโs what the requests looked like:
| Where the image comes from | Sec-Fetch-Dest / Sec-Fetch-Mode | Accept | What our server sent |
|---|---|---|---|
<img>, srcset, CSS background, preload, favicon, new Image() | image / no-cors | image/avif,image/webp,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5 | AVIF |
<img crossorigin="anonymous"> | image / cors | same | AVIF |
fetch() | empty / cors | */* | PNG |
Every image context sends the same Accept header, so a server negotiating on Accept gets a consistent answer.
AVIF is in the list and our server prefers it, so AVIF is what Ladybird got.
The exception is fetch(): it sends a bare */*, which tells the server nothing, and our server fell back to PNG.
If your app fetches images from JavaScript and expects modern formats, youโll need to set Accept yourself.
A small detail we liked: Ladybird requested the favicon first, 63 ms after navigation and before the main image.
JPEG XL: decoded, but never asked for
This was the most interesting finding for us.
Ladybird decodes JPEG XL just fine. Yet image/jxl is not in its Accept header.
That makes JPEG XL invisible to format negotiation.
image/* doesnโt tell a server whether a browser can decode JPEG XL,
so a server choosing a format from Accept has no signal to pick it for Ladybird.
Ladybird gets AVIF or WebP instead, which it also handles well.
Today, the way to deliver JPEG XL to this browser is through markup.
In our <picture> test, with sources listed as JPEG XL, then AVIF, then WebP, then a PNG fallback, Ladybird picked JPEG XL.
If youโre weighing the two formats, we compared them in AVIF vs JPEG XL vs JPEG.
Hereโs the full picture for image formats:
| Format | Displays in <img> | Listed in Accept | Canvas can export it |
|---|---|---|---|
| PNG | โ | โ | โ |
| JPEG | โ | via image/* | โ |
| WebP | โ | โ | โ |
| AVIF | โ | โ | โ |
| JPEG XL | โ | โ | โ |
| HEIC | โ | โ | โ |
HEIC files arrived complete (the server returned 200 and Ladybird received every byte) but failed to decode.
Ladybird plays HEVC video, the codec inside HEIC, but it has no HEIF image decoder yet.
Content-Type doesnโt matter much
We served the same image bytes with no Content-Type, with application/octet-stream, text/plain and text/html,
with and without X-Content-Type-Options: nosniff.
We also served WebP labeled as PNG and AVIF labeled as JPEG.
All eight rendered.
Ladybirdโs image decoder looks at the bytes, not the label.
All of these requests were same-origin, where nosniff isnโt meant to affect images anyway.
A neat srcset detail
We used <img sizes="300px"> with two candidates, described as 480w and 960w.
On a 2ร display Ladybird correctly chose the 960w one, since 300 px at 2ร needs 600 px.
Both files were actually 480 px wide.
Ladybird took the 960w descriptor at its word and reported the imageโs natural width as 150 px (480 รท 960 ร 300).
Thatโs exactly what the spec says should happen.
Itโs also a good reminder that a wrong w descriptor quietly shrinks your image.
Client Hints: not yet
Our page responded with Accept-CH and Critical-CH, asking for device pixel ratio, width, viewport size, network quality,
color-scheme preference and the detailed User-Agent hints.
Ladybird ignored all of it.
There was no restart of the navigation, and no extra hints showed up on any later request.
The only hints it sends are the three defaults: Sec-CH-UA, Sec-CH-UA-Mobile and Sec-CH-UA-Platform.
In practice, server-side image sizing based on Client Hints wonโt kick in for Ladybird.
Responsive images still work through srcset and sizes, or through explicit size parameters in the URL.
Who it says it is
Hereโs how Ladybird introduces itself:
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ladybird/2026.47.7 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.0.0 Safari/537.36
Sec-CH-UA: "Ladybird";v="2026", "Not_A Brand";v="8", "Chromium";v="153"To a server, it looks like Chrome 153 with a Ladybird token added.
navigator.vendor even says Google Inc.
The UA string reports an Intel Mac, while WebGL reports ANGLE Metal Renderer: Apple M4.
From JavaScript, though, you can tell.
navigator.userAgentData and window.chrome are both missing,
and the three low-entropy Sec-CH-UA headers are the only User-Agent Client Hints data it exposes.
The request headers have their own shape too:
Host: โฆ
Accept-Encoding: deflate, gzip, br, zstd
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
Sec-Fetch-User: ?1
User-Agent: โฆ
Sec-CH-UA: โฆ
Sec-CH-UA-Mobile: ?0
Sec-CH-UA-Platform: "macOS"
Connection: keep-alivedeflate comes first in Accept-Encoding, Accept-Language has no quality values,
User-Agent comes after the Sec-Fetch-* headers, and Connection is last.
For loading subresources, Ladybird opened six parallel keep-alive connections and spread all 23 image requests across them.
Video and audio
This is where we expected an alpha to stumble, and it mostly didnโt.
Video codecs
Every clip below played both as a regular file and through Media Source Extensions (MSE), the API that adaptive players use. Each one reached its full resolution, including 3840ร2160, and showed a real, non-blank frame. None dropped a frame, though each clip only played for about half a second.
| Codec | Codec string | Plays |
|---|---|---|
| H.264 High, 1080p | avc1.640028 | โ |
| H.264 Constrained Baseline, 720p | avc1.42c01f | โ |
| HEVC Main, 1080p | hvc1.1.6.L120.90 and hev1.1.6.L120.90 | โ |
| HEVC Main, 2160p | hvc1.1.6.L150.90 | โ |
| AV1 Main, 1080p | av01.0.08M.08 | โ |
| AV1 Main, 2160p | av01.0.12M.08 | โ |
| VP9, 1080p (WebM and MP4) | vp09.00.40.08 | โ |
| VP8, 720p | vp8 | โ |
Audio codecs
AAC-LC, HE-AAC, Opus (in WebM and MP4), FLAC and MP3 all played. They also decoded through the Web Audio API.
AC-3 and E-AC-3 didnโt work anywhere.
In an <audio> element the fileโs metadata loaded, then playback stopped at zero with โCould not find an audio decoder for codec Unknownโ.
MSE refused the MIME type outright, and the Web Audio API couldnโt decode them either.
HLS and DASH
Neither plays natively.
Pointing <video> at an .m3u8 playlist or an .mpd manifest ends with โCould not find a demuxer for streamโ.
With a JavaScript player on top of MSE, both work. hls.js 1.5.17 played our HLS stream, transmuxing its MPEG-TS segments on the fly. dash.js 4.7.4 played our DASH stream with separate audio and video tracks. Both loaded every segment and rendered 720p video without dropped frames.
So the basics of adaptive streaming already work in Ladybird, as long as a JavaScript player does the work. We tested a single H.264/AAC rendition, so quality switching is still untested.
Range requests and seeking
Ladybird starts every <video> and <audio> load with a plain GET, without a Range header, and downloads the file from the beginning.
That changes the moment you seek.
To see it, we made 120-second clips with the current second encoded into every frame, so we could check where playback really landed.
Our server sent them at 2 MB/s, so a jump ahead would outrun the download.
When we jumped to 100 s in a 37.6 MB MP4, Ladybird dropped the initial download and asked for Range: bytes=31303383- on a new connection.
The seeked event fired 10 ms later, and the frame on screen showed second 100.
Jumping back to 30 s worked the same way.
A WebM file with its index at the front behaved just like the MP4, with seeks taking about 65 ms.
MP4 files with the moov box at the end are handled well too.
Ladybird requested the last 39 KB of the file 23 ms into the load and had the metadata at 51 ms.
Without range support on the server, Ladybird falls back sensibly, but you pay for it in time.
When the server didnโt send Accept-Ranges, Ladybird never tried a range request.
A jump to 100 s waited for the linear download to get there, which took 17 seconds.
An MP4 with moov at the end was worse: no metadata at all until the whole file had arrived, 21 seconds in.
Once a file was fully downloaded, every seek landed on the exact frame (10, 100, 5, 60.5, 119.5 and back to 0 s) within 2 to 11 ms.
fastSeek(75) snapped to the keyframe at 76 s, which is what fastSeek is for.
The streaming players seek just as well. After a jump to 100 s, hls.js fetched segment 50 onward and nothing in between, and dash.js did the same starting from chunk 51. Both landed on the right frame in about 10 ms.
One more detail: range requests switch to Accept-Encoding: identity, while the first request for the same video offers deflate, gzip, br, zstd.
Can you trust what it claims?
Mostly, yes.
canPlayType() matched reality for all 18 clips: probably and maybe both meant the file played, and an empty string meant it didnโt.
MediaSource.isTypeSupported() was right every time we checked it.
mediaCapabilities.decodingInfo() has some rough edges:
- It reports FLAC as unsupported, even though FLAC plays.
- It throws a
TypeErrorfor MP3, AC-3 and E-AC-3 instead of returning โnot supportedโ. - Otherwise its answers are plausible and they vary by codec. VP8, for example, is reported as not power-efficient.
Whatโs not there yet
Plenty of modern platform features already work: Service Workers, WebAssembly, the Navigation API, popover, CompressionStream, OffscreenCanvas,
and in CSS, :has(), container queries, anchor positioning, display-p3 colors and image-set() with type().
Other features arenโt available yet: WebCodecs, WebGPU, WebAuthn (so no passkeys), WebTransport, View Transitions, the Speculation Rules API (which we covered in our guide to speculation rules), Payment Request, and the hardware APIs (WebUSB, WebHID, Web Serial, WebMIDI, Web Bluetooth).
A few values look like placeholders for now:
- The display reports HDR support (
dynamic-range: high) but only the sRGB color gamut. - Resource Timing leaves
contentTypeempty and labels a CSS background image as initiated byscript. navigator.storage.persisted()doesnโt exist yet.
A few caveats
This was one browser on one machine, in a single run. All requests were same-origin, over HTTP/1.1, to a local server, so we didnโt look at cross-origin behavior or HTTP/2 and HTTP/3. The video clips were short and muted, so hardware decoding, long-run smoothness, quality switching, HDR and DRM are still open questions.
Wrapping up
We went in expecting an alpha, with all the rough edges that word implies. What we found was a browser that:
- loaded our test page in about a tenth of a second (DOMContentLoaded at 68 ms,
loadat 104 ms on a local server); - fetched two dozen images in parallel;
- decoded AVIF and JPEG XL;
- played 4K AV1 and HEVC without dropping a frame in our test clips;
- switched to range requests when we seeked and landed on the right frame;
- ran both major JavaScript streaming players without complaint.
The gaps we hit are mostly about what it asks for and reports, not about what it can do:
JPEG XL missing from Accept, Client Hints not supported yet, and a few placeholder values.
Weโre impressed with how well the Ladybird alpha performed, and weโre glad to see a truly independent engine on the web again. We wish the Ladybird team a long and good future, and weโll keep testing as new releases come out.