Live data from Hacker News

A 14kb page can load much faster than a 15kb page

endtimes.dev

221–230 of 356 posts

Re: A 14kb page can load much faster than a 15kb page

#221

Earlier quoted context omitted.

Amazon has publicly stated that every 100ms in additional loading time leads to 1% loss in revenue. For the scale of Amazon, that is massive

That's a claim that they made in 2006. Could there be a reason why Amazon said that a slow website would have a massive impact on ecommerce sales back then? Was there some other Amazon product that would greatly benefit from people believing they had to use the fastest hosting service possible for their online store? Coincidently, AWS also launched in 2006.

AWS was nothing like it is today back in 2006. It’s not as easy as your post implies, and if you know the full story, it’s super far fetched.

Re: A 14kb page can load much faster than a 15kb page

#223
post #113

Earlier quoted context omitted.

I'm using icon font to show a grid of icons, where each icon can be clicked to toggle it "on" or "off". Example: https://i.imgur.com/EHYHVDw.png When I was implementing this, I initially experimented with the img tags – easy to implement, easy to have multi-color icons. But the grid can potentially have 100s of rows, potentially resulting in 1000+ of img tags. When testing with img tags, my site became noticeably slu…

i too use an icon font, but if you want images you should use a spritemap. it shouldn't be sluggish.

I write a framework, not an app. In any event, I need to allow others to style my icons with their own colors. Hence I use a font. Is there a way to use SVG sprites or something, while also letting people control the stroke color with css? Seems yes: dont put CSS in the svg. But why not just use a font?

https://stackoverflow.com/questions/37940282/changing-the-st...

Re: A 14kb page can load much faster than a 15kb page

#224

That's only doable with a text-centric website. I'm currently finishing a photography section for my personal website, and the gallery pages are several hundred kBs in size, while single photo page is almost 1MB in size (provided you load it on a 28" screen; browser will load smaller variants on smaller screens). Most of that weight is the thumbnails (and almost-full-size photo in the latter case). The only JS I have…

>the gallery pages are several hundred kBs in size

The HTML itself is several hundred kB? Something’s very wrong there…

Re: A 14kb page can load much faster than a 15kb page

#225
Is the post joke? Are there any network technical who can explain that the packet can have different size and modified by different routers inside chain of path from source to destination? I mean some kind of absurd topic. And everyone instead of reading ethernet standard and teaching materials about this OSI level, start to debate about this thing.

Re: A 14kb page can load much faster than a 15kb page

#226
post #113
post #80

Earlier quoted context omitted.

I wish I could do this without breaking all the obnoxious sites that use fonts for icons. Someone should invent an HTML tag for putting images on a page.

I'm using icon font to show a grid of icons, where each icon can be clicked to toggle it "on" or "off". Example: https://i.imgur.com/EHYHVDw.png When I was implementing this, I initially experimented with the img tags – easy to implement, easy to have multi-color icons. But the grid can potentially have 100s of rows, potentially resulting in 1000+ of img tags. When testing with img tags, my site became noticeably slu…

[deleted]

Re: A 14kb page can load much faster than a 15kb page

#227

That's only doable with a text-centric website. I'm currently finishing a photography section for my personal website, and the gallery pages are several hundred kBs in size, while single photo page is almost 1MB in size (provided you load it on a 28" screen; browser will load smaller variants on smaller screens). Most of that weight is the thumbnails (and almost-full-size photo in the latter case). The only JS I have…

Even for text-centric sites fitting everything in 14kB is not always feasible if you use custom fonts. My site is text- and math-centric, but it uses some fonts (Crimson + bold and italic variants, plus the KaTeX fonts used for math). Each font is about 30kB big for a total of 180kB. I would like to improve, but I feel like the fonts are essential for the look and feel, so I'm not willing to give up the fonts, so I g…

>so I'm not willing to give up the fonts

Visitors will simply block them :)

Post reply on HN