This JPGs-in-a-SVG thing is grotesque, an example of how web development often seems like a Jenga tower of hacks. Why not find minimally-perceptible pixel changes to the image that allow it to compress better as PNG?
> Why not find minimally-perceptible pixel changes to the image that allow it to compress better as PNG? I would bet a whole pizza, anchovies included, that you'd be the first one to fire an engineer who wasted his time pixel-perfecting a random PNG on your homepage under the guise of performance, when this is actually an alternative. The JPG-in-SVG is a beautiful hack to work around Apple's former refusal to support…
Making our new homepage fast and performant
41–50 of 144 posts
Re: Making our new homepage fast and performant
#42It starts with 952.83 KB / 364 KB transferred and goes to 1.70 MB / 482.03 KB transferred on final load (once you reach the bottom of the page) Github's starts with 3.10 MB / 969.27 KB transferred and goes to 6.64 MB / 4.54 MB transferred
Yeah, Github's homepage has more content, it's true... but what I find really amazing about Stripe's homepage is that those kind of previews of their interface are not images, they are built with actual code!
Stripe has a really awesome dev culture, problem solving to the next level, also on their homepage!
edit: typo
Re: Making our new homepage fast and performant
#43Re: Making our new homepage fast and performant
#44Re: Making our new homepage fast and performant
#45Re: Making our new homepage fast and performant
#46Earlier quoted context omitted.
> Why not find minimally-perceptible pixel changes to the image that allow it to compress better as PNG? I would bet a whole pizza, anchovies included, that you'd be the first one to fire an engineer who wasted his time pixel-perfecting a random PNG on your homepage under the guise of performance, when this is actually an alternative. The JPG-in-SVG is a beautiful hack to work around Apple's former refusal to support…
Just write a program to do the pixel-perfecting.
The fact is, if you know how JPG and PNG work, you'll know that a colorful and busy image like the one linked in the article, with lots of varying alpha colors and values for anti-aliasing, is basically impossible to compress anywhere close to a JPG.
There are more lossy ways to compress PNG which aren't done automatically anywhere to my knowledge, such as reducing the amount of colors to fit a smaller color space.
What you can also do is turn the image into contiguous chunks so that they are in a pattern that is more compressib… wait, we're just reinventing JPG aren't we.
Re: Making our new homepage fast and performant
#47The never ending tug of war: Developers decrease load speed from 3 seconds to 1 second. Company decides they now have 2 extra seconds of load time to include more analytics, larger splash videos, animations, etc. Before long, the site is back to loading in 3 seconds and a richer (more bloated) web experience is born. History moves in a spiral.
Re: Making our new homepage fast and performant
#48What does the word performant mean exactly?
I think it means fast, but it's used when someone wants a buzzword. I wish people would use fast instead. I feel the same way with learnings (use lessons ).
Re: Making our new homepage fast and performant
#49Issue and PR pages desperately need pagination.
Re: Making our new homepage fast and performant
#50Earlier quoted context omitted.
>> Who Newbies! You used to be a newbie to. Remember?
I think you'll still be clicking on links taking you to repository pages. I think I've gone to the homepage only whenever people complain about the design (last I heard it had gone enterprisey).
Almost never happens.