4 ms·
The only reason you would do this is to save space (ie minify). Out of everything you have in your entire stack is the 1kb you save by removing the optional tag
by dubcanada 10y ago
The only reason you would do this is to save space (ie minify). Out of everything you have in your entire stack is the 1kb you save by removing the optional tags really gonna matter? I mean wouldn't it make more sense to spend time reducing javascript, or css styles, or making your database faster?
I mean if you are Google, yes that 1kb matters a ton. But they've already optimized to the point where minifying their HTML makes sense.
- progx 10y agoYear 2016: 4.5 G Networks rising, Smartphones with 1440P Screens are normal and many pictures and videos distributed in 4K resolution. And you really think about minification of html, js, or css to save some bytes?
- kalleboo 10y agoI just wish we had bigger MTUs to fit our bandwidth so we could reduce latency...
- Tepix 10y agoBigger MTUs would increase latency but also increase throughput.
- idreyn 10y agoWell Google might, if they serve those bytes a trillion times per year.
- progx 10y agogoogle did not serve them (ok from cache), google must read them and process the content, that cost google time and money.
- TheRealPomax 10y agoYou miss the big picture of "the web" rather than "a dev", or "a web site". The more pages, across all devs and all websites, that build their content in a way that omits the optional tags in HTML, the fewer bytes we have that need to be pumped through data centers and routing paths on the planet. It's not so much about "if you're google" but "if we all do this": a 0.001% reduction in global byte transfers would constitute a massive saving despite looking like a tiny number.
- draw_down 10y agoRight, I'd like to see some evidence that omitting tags has any actual value whatever. If you're starting something new and the tags truly are optional (something I don't have a lot of confidence in, but maybe so), then sure, I guess leave them out. But I really question the motivation of this. Saving a few bytes of HTML is a really, really questionable win.