Earlier quoted context omitted.
It's easy to forget that html isn't the end product, the end result is lit pixels on some screen (usually). If we send json then that needs to be converted to html and that html needs to be layout and rendered. If we send html we just skip the first step. Displaying a web page isn't "free" for the client just because it's html. The question is this: what kind of overhead is a template rendering task (in js) for a mod…
Crazy thought: detect viewport size on first load and serve pre-rendered PNGs to skip the rendering on client part. Someone probably already developed that.
A new approach to web performance
41–50 of 177 posts
Re: A new approach to web performance
#42My only contribution to the conversation is utter bewilderment someone thought this would be a good idea.
The improvements are because they've removed everything.
Also, side note but I thought there was already a proposal in HTML for reusable elements?
Re: A new approach to web performance
#43What annoys me is how Google is selling this project. At least Facebook is honest about their Instant Articles. This isn't an "open standard" guys, and it's not about performance! It's about the single piece of js that's allowed on AMP pages and the amp-tags such as and that only Google controls. Performance is just the story they are selling in exchange of absolute control of the Web. After all, any publisher can ea…
https://validator.w3.org/nu/?doc=http%3A%2F%2Fwww.theverge.c...
Re: A new approach to web performance
#44Earlier quoted context omitted.
Then show them an AJAX spinner while fetching the static site in the background.
That's what one of the Blogger templates does, and I've seen people on HN complain about having to see an AJAX spinner just to load a blog.
Re: A new approach to web performance
#45Earlier quoted context omitted.
It's easy to forget that html isn't the end product, the end result is lit pixels on some screen (usually). If we send json then that needs to be converted to html and that html needs to be layout and rendered. If we send html we just skip the first step. Displaying a web page isn't "free" for the client just because it's html. The question is this: what kind of overhead is a template rendering task (in js) for a mod…
Crazy thought: detect viewport size on first load and serve pre-rendered PNGs to skip the rendering on client part. Someone probably already developed that.
It feels slow ;)
Re: A new approach to web performance
#46This really comes across as some sort of elaborate joke. Their solution to a slow web is to circumvent the standards and use a javascript library? My only contribution to the conversation is utter bewilderment someone thought this would be a good idea. The improvements are because they've removed everything. Also, side note but I thought there was already a proposal in HTML for reusable elements?
Re: A new approach to web performance
#47https://en.wikipedia.org/wiki/I-mode
Then, as now, regular HTML pages were considered too slow and complicated for mobile phones. I-mode was conceived by the large network operator NTT Docomo.
The big difference is that NTT Docomo were the exclusive gatekeepers for publishing content. Google also gives you the option of publishing AMP content on their CDN, but it's not mandatory.
Re: A new approach to web performance
#48Re: A new approach to web performance
#49Maybe it's a sign of me getting old, but I have never understood the thought process behind building systems which server static content - newspapers, blogs - which require active processing for every request for every user. These are systems where the read/write ratios are often 1000:1. Ten years ago this was symptomized by systems which pulled the same content out of a database for every single request. We treated…
It's easy to forget that html isn't the end product, the end result is lit pixels on some screen (usually). If we send json then that needs to be converted to html and that html needs to be layout and rendered. If we send html we just skip the first step. Displaying a web page isn't "free" for the client just because it's html. The question is this: what kind of overhead is a template rendering task (in js) for a mod…
That's where all the junk comes from: tracking the user and trying to upsell them into a mobile app so you can get more personal data and a spot on their home screen.
Re: A new approach to web performance
#50Maybe it's a sign of me getting old, but I have never understood the thought process behind building systems which server static content - newspapers, blogs - which require active processing for every request for every user. These are systems where the read/write ratios are often 1000:1. Ten years ago this was symptomized by systems which pulled the same content out of a database for every single request. We treated…
Well, I would say the common argument is that you send an intermediate format to decouple yourself from the specifics of the receiver. HTML is an intermediate format and the client is free to render it how it sees fit for the device on which it is running, which allows compatibility with newer and different clients. It's like shipping some intermediate bytecode doesn't seem to make sense, because every client needs t…