4 ms·
A question as a non user: What are you doing with the extra 500kB for me, the user? > 90% of the time in interested in text. Most of the reminder vector graph
by mousethatroared 1y ago
A question as a non user:
What are you doing with the extra 500kB for me, the user?
> 90% of the time in interested in text. Most of the reminder vector graphics would suffice.
14 kB is a lot of text and graphics for a page. What is the other 500 for?
- nicce 1y agoIf you want a fancy syntax highlighter for code blocks with multiple languages on your website, that is alone about that size. E.g. regex rules and the regex engine.
- masfuerte 1y agoAs an end user I want a website that does the highlighting once on the back end.
- filleduchaos 1y agoText, yes. Graphics? SVGs are not as small as people think especially if they're any more complex than basic shapes, and there are plenty of things that simply cannot be represented as vector graphics anyway. It's fair to prefer text-only pages, but the "and graphics" is quite unrealistic in my opinion.
- mousethatroared 1y agoBy vector graphics I meant primitive graphics. Outside of youtube and... twitter? I really don't need fancy stuff. HN is literally the web ideal for me, and Id think most users if given an option.
- whatevaa 1y agoNo, you think wrong. Most users like fancier stuff than HN, including me.
- LarMachinarum 1y agoHow much is gained by using SVG (as opposed to a raster graphics format) varies a lot depending on the content. For some files (even with complex shape paths depending on a couple details) it can be an enormous gain, and for some files it can indeed be disappointing. That being said, while raw SVG suffers in that respect from the verbosity of the format (being XML-based and designed so as to be humanly readable and editable as text), it would be unfair to compare, for the purpose of HTTP transmission, the size of the raster format image (heavily compressed) with the size of the SVG file (uncompressed) as one would if it were for desktop use. SVG tends to lend itself very well to compressed transmission, even with high-performance compression algorithms like brotli (which is supported by all relevant browsers and lots of HTTP servers), and you can use pre-compressed files (e.g. for nginx with the module ngx_brotli) so that the server doesn't have to handle compression ad hoc.
- ssernikk 1y agoI use it for fonts. My website [0] consists of about 15kB of compressed HTML + CSS and 200kB of fonts. [0] https://wyczawski.dev/ https://wyczawski.dev/
- mousethatroared 1y agoWhy do I care about fonts? Honestly, if my browser had an option not to load fonts and use my default to save load time I ld choose that 19 out 20 times.
- ndriscoll 1y agoFirefox does have that option. The main annoying thing you'll encounter is that some websites use custom fonts for symbols.
- timeon 1y ago> 15kB of compressed HTML + CSS Could be less than 14 if classes were not duplicating css.