Back to Guillermo Rauch: One Stroke Dragon, with Guillermo Rauch.
Why Does Layout Shift Lose the Sale?
Guillermo Rauch says layout shift loses the sale. He gives business people this case: a shopper is about to press buy, an engineer's mistake shifts the page down, and the shopper clicks an ad, leaves the site, or goes back. The sale is gone. A product that janks and jitters on load does not feel good, and conversions fall when the layout work is sloppy. The browser has already done the math and is ready to paint, then has to calculate the page again. He compares that waste to code that makes an app load five times, burning time, compute, and energy.
Layout shift also erodes trust. It feels unreliable, the way a shifty person does not feel trustworthy. People should still be free to break a rule instead of following dogma. The web experience he wants is a highly honed video game, where sprites appear on a stable horizon and do not jump around.
The picture he gives is a Japanese art of painting a dragon in one stroke. The brush is loaded, and the painter has already predicted the whole dragon. A strong application or website has that same intentionality. It is not shifty.
Guillermo Rauch: One Stroke Dragon ·
From the transcript
I need to write a skill file to catch that next time we actually, you know, deploy a change of that nature. The classic one there is layout shift. Yes. Yeah. Which is that, you know, actually this is a good example of the overlap between design and engineering. Okay. So layout shift is this concept of when you're loading an application, interface a website, Things should have a predictable paint path.
They should have a predictable layout. Imagine the classic example I give business people is I'm going to go purchase your product and I'm about to press buy now. And some engineer made a mistake. The page shifts down. Instead of buy now, I click on an ad or I go out of the website or I go back. And so you lost my sale. And so this is bad because now when you start really paying attention, you realize that a product that janks and jitters around when you load it just doesn't feel good or doesn't look good, right? It also has the business element of like, we know from the data that if you are not doing your layout work well, your conversions will decrease or whatever.