News for hackers. Stuff that matters.
Re:1MB Club by charlesdaniels on Thursday November 19, 2020 @03:42PM (#25154109)
At the risk of over-complicating things, perhaps there could be limits per resource type. 10Mb of images might be reasonable (e.g. for a photojournal), but only 128KB of JS, and 128KB for everything else. Something along those lines.
Re:1MB Club by SilasX on Thursday November 19, 2020 @03:48PM (#25154163)
Yeah I was surprised they included pictures in the limit at all -- I mean, sometimes, you need those pictures, and for them to load slower is less important so long as you don't need them to navigate the page.
Re:1MB Club by corobo on Thursday November 19, 2020 @07:09PM (#25155972)
Well if you need them you can't be a part of this 1MB club.

It's not a bad thing, it's just a thing.

Re:1MB Club by dylan604 on Thursday November 19, 2020 @06:31PM (#25155656)
If you were able to calculate the space in the document flow for those images, I'm fine with the lazy loading. I hate when the page text appears rendered long enough that I start reading, but then lazily loaded items cause the flow to rearrange the text so that I lose my place.
Re:1MB Club by jan6 on Thursday November 19, 2020 @11:50PM (#25157394)
I imagine it should be pretty easy with javascript to set up dummy images, and replace them... probably also doable in pure css, just make them a block element or something, with a set size...
Re:1MB Club by innocenat on Friday November 20, 2020 @12:29AM (#25157566)
You don't have to imagine everything. Normally the lazy-loaded image should be seeded with transparent SVG that as the same dimension. It's a solved problem.
Re:1MB Club by sago on Friday November 20, 2020 @10:23AM (#25161292)
I miss lowsrc. It had a point.
Re:1MB Club by adrianN on Friday November 20, 2020 @12:31AM (#25157576)
Wasn't this what progressive jpeg was invented for?
Re:1MB Club by Aeolun on Thursday November 19, 2020 @04:25PM (#25154561)
I’m not surprised. The whole point of it is that you can reasonably load it over 3g.

If you have a few megs of images that never show up because they take too long to load, there is no point.

Re:1MB Club by phkahler on Thursday November 19, 2020 @04:29PM (#25154613)
You dont really need full size/resolution images on a web page.
Re:1MB Club by SulfurHexaFluri on Thursday November 19, 2020 @05:08PM (#25154952)
You people are why some sites have ugly blurry logos/images on my 4k screen
Re:1MB Club by jan6 on Thursday November 19, 2020 @11:51PM (#25157397)
more the fault of the site devs for not using css media queries, or svg ;p
Re:1MB Club by Dylan16807 on Friday November 20, 2020 @01:02AM (#25157716)
Does getting in the club assume you have a low resolution screen?

SVG only works in a few places.

Re:1MB Club by phponpcp on Thursday November 19, 2020 @04:36PM (#25154682)
You do for full width retina images on 1440p+ monitors.
Re:1MB Club by SilasX on Thursday November 19, 2020 @04:33PM (#25154655)
Yeah true but even with small images, you can hit that cap quickly.
Re:1MB Club by z3t4 on Thursday November 19, 2020 @08:18PM (#25156415)
You could use SVG images.