Hacker News new | ask | show | jobs
by onion2k 1610 days ago
I like to see sites as they were intended to be seen and not jump around and change colors with every chunk of html or css.

No one likes layout shifting. There's no reason why a site should be jumping around just because the HTML is being rendered as it streams though. Stopping layout shift is more to do with prioritizing layout CSS (inlining important styles for example), avoiding dynamic content injection (eg server side rendering instead of lazy loading content) and providing proper hints to the browser about where things should go, how big things are, and so on.

1 comments

That’s what sites do today: they load everything via small bootstrap code, in prioritized chunks, and render them when it’s done. It’s not a developer’s fault that there is no browser-way to load apps with particular requirements. Browser is not a development/deployment platform, it’s just a target like ELF or PE. An average company or a person is unable to ship and maintain carefully crafted EXEs and stay in business, neither in web, nor in desktop. You’re talking about scene, not software development. Scene is cool. Scene is no business.
That’s what sites do today: they load everything via small bootstrap code, in prioritized chunks, and render them when it’s done.

That's what sites did do until the last two or three years. Now things are moving back to server side rendering because it's a tiny bit faster for some use cases.

It’s not a developer’s fault that there is no browser-way to load apps with particular requirements.

Browsers have exactly that functionality for a small set of requirements. https://developer.mozilla.org/en-US/docs/Web/HTTP/Client_hin...