'I have crawled through depths of hell': One coder's suffering is a potential joy to every web user, as their project could make sluggish browsers a thing of the past

A cropped screenshot of a Pretext demo, as created by Cheng Lou and somnai-dreams
(Image credit: Cheng Lou / somnai-dreams)

The vast majority of web users click and swipe away at their preferred browser, with nary a thought behind the sheer amount of work that goes on behind the scenes in today's websites. Web coders do, though, and often have to juggle performance considerations against having everything correctly rendered. But there's one inspired bit of code library that could just solve all that in one fell swoop.

It's called Pretext, and it's the creation of California-based coder Cheng Lou, who's worked for the likes of React, Meta, and Midjourney. In short, it's a system that very rapidly calculates text size and positioning for browsers, and if you want a longer breakdown of what it does, I strongly recommend you watch YouTube channel Fireship's explanation of it all.

Better still, try a couple of demos of it in action for yourself, over at Lou's dedicated page for Pretext. To my eyes, the most impressive one is 'Editorial Engine', created by somnai-dreams, where you can drag various bubbles across the screen, and the text correctly rearranges itself around the circles, as fast as you can move them about.

At the moment, Pretext isn't aimed at being an all-singing and dancing browser rendering engine; it just handles a pretty strict selection of text setups. However, just from the small collection of demos, I suspect that Lou's work will have quite a few web coders seriously interested in helping develop the system further.

Lou's project is also a good example of where AI can be genuinely useful, rather than something to avoid and curse. To check that Pretext would correctly handle text rejigging in every browser on the market, with every possible language pack, Lou used AI to create some of the logic structures required and then iteratively test them across the hundreds of thousands of browser-language combinations.

That kind of workload would simply be impossible for a single person to do, though I do wonder as to just how many tokens Lou burned through to get the task done. In their own words, Lou "crawled through the depths of hell" to give the world Pretext, but the work has certainly been well received.

"Cheng you are forever a gift to the web," said one commenter. Lou's response? "Thanks I hate the web." Well, can't argue there.

Secretlab Titan Evo gaming chair in Royal colouring, on a white background
Best PC gaming kit 2026

1. Best gaming chair: Secretlab Titan Evo

2. Best gaming desk: Secretlab Magnus Pro XL

3. Best gaming headset: Razer BlackShark V3

4. Best gaming keyboard: Asus ROG Strix Scope II 96 Wireless

5. Best gaming mouse: Razer DeathAdder V4 Pro

6. Best PC controller: GameSir G7 Pro

7. Best steering wheel: Logitech G Pro Racing Wheel

8. Best microphone: Shure MV6 USB Gaming Microphone

9. Best webcam: Elgato Facecam MK.2


👉Check out our list of guides👈

TOPICS
Nick Evanson
Hardware Writer

Nick, gaming, and computers all first met in the early 1980s. After leaving university, he became a physics and IT teacher and started writing about tech in the late 1990s. That resulted in him working with MadOnion to write the help files for 3DMark and PCMark. After a short stint working at Beyond3D.com, Nick joined Futuremark (MadOnion rebranded) full-time, as editor-in-chief for its PC gaming section, YouGamers. After the site shutdown, he became an engineering and computing lecturer for many years, but missed the writing bug. Cue four years at TechSpot.com covering everything and anything to do with tech and PCs. He freely admits to being far too obsessed with GPUs and open-world grindy RPGs, but who isn't these days?

You must confirm your public display name before commenting

Please logout and then login again, you will then be prompted to enter your display name.