3 ms·
Maybe I am a bit weird but the first thing I do with my hello world search results is open the page source. I was surprised by the amount of wasted new lines, i
by PaulKeeble 7y ago
Maybe I am a bit weird but the first thing I do with my hello world search results is open the page source. I was surprised by the amount of wasted new lines, it is more empty space than content. More surprisingly I found quite a few lines containing nothing more than spaces. There were quite a few instances of nbsp being repeated. This is one place where seeing a lot of tabbed in spaces is clean but also quite wasteful.
There are 9694 spaces in the page, 15464 new lines and ~272 non breaking spaces on a file that is only 178037 bytes. Just under 15% of the file probably doesn't need to be there. It hopefully is a fairly easy win to remove a lot of the wasted bytes in the file.
- jvagner 7y agodark web encoded doorway, obv
- jmt_ 7y agoThis is most likely due to an HTML template engine.
- unfunco 7y agoThe effect in terms of bytes sent over the network would be negligible due to compression.
- PaulKeeble 7y agoYou are quite correct, if I correct the original file the gzipped equivalent of the file ends up just 4% larger, so the gap between the two narrows quite a bit. Still a bit of fat to trim but by no means the same level of waste the raw file contains.