Home/Blog/Ladybird alpha: how a brand-new browser engine asks for images and video

Ladybird alpha: how a brand-new browser engine asks for images and video

Weโ€™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 fromSec-Fetch-Dest / Sec-Fetch-ModeAcceptWhat our server sent
<img>, srcset, CSS background, preload, favicon, new Image()image / no-corsimage/avif,image/webp,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5AVIF
<img crossorigin="anonymous">image / corssameAVIF
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:

FormatDisplays in <img>Listed in AcceptCanvas 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-alive

deflate 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.

CodecCodec stringPlays
H.264 High, 1080pavc1.640028โœ“
H.264 Constrained Baseline, 720pavc1.42c01fโœ“
HEVC Main, 1080phvc1.1.6.L120.90 and hev1.1.6.L120.90โœ“
HEVC Main, 2160phvc1.1.6.L150.90โœ“
AV1 Main, 1080pav01.0.08M.08โœ“
AV1 Main, 2160pav01.0.12M.08โœ“
VP9, 1080p (WebM and MP4)vp09.00.40.08โœ“
VP8, 720pvp8โœ“

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 TypeError for 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 contentType empty and labels a CSS background image as initiated by script.
  • 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, load at 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.

Ready to get started?

Join developers who use Uploadcare to build fileย handling quickly andย reliably.

Sign up for free