Live data from Hacker News

Show HN: I made an elegant SwiftUI timeline

github.com

31–40 of 46 posts

Re: Show HN: I made an elegant SwiftUI timeline

#31
post #5
post #2

Very nice! I know you want to show off the buttery smoothness of your animations, but do you really need to dump >200MBs of gifs on that single page? Holy laptop fan smoke!

Do NOT open this page on mobile. It just consumed all my data plan

LOL so sorry dudes. I use HN on web....

Re: Show HN: I made an elegant SwiftUI timeline

#34
post #2

Very nice! I know you want to show off the buttery smoothness of your animations, but do you really need to dump >200MBs of gifs on that single page? Holy laptop fan smoke!

ok u know what. changing all the gifs to embedded videos. no one will complain about me discriminating towards mobile :^)

Re: Show HN: I made an elegant SwiftUI timeline

#36
post #33

Your loading page size is 449.8 MB [1] Please put that in your title. [1]: https://tools.pingdom.com/#5cd8c1fc83000000

I can't change it but if a mod can, I'd be more than willing to accept that change

No, don’t put it in the title, just fix the page. A page being even 100MB would be wildly unacceptable, let alone 450MB.

The really quick fix is just to replace the images with links to the images. Anything fancier (like replacing them with static images and links to actual videos rather than GIFs) can come later.

Please. I’m not trying to be mean in any way, but words are failing me at just how bad this is. You just don’t do this sort of thing. Entirely genuinely, you have probably directly cost at least a dozen people a few dollars with these GIFs, and measurably (sometimes seriously) inconvenienced dozens more for up to a month due to limits reached or approached.

Re: Show HN: I made an elegant SwiftUI timeline

#38
post #33

Earlier quoted context omitted.

I can't change it but if a mod can, I'd be more than willing to accept that change

No, don’t put it in the title , just fix the page . A page being even 100MB would be wildly unacceptable, let alone 450MB. The really quick fix is just to replace the images with links to the images. Anything fancier (like replacing them with static images and links to actual videos rather than GIFs) can come later. Please. I’m not trying to be mean in any way, but words are failing me at just how bad this is. You ju…

Yep fixing that right now.

Re: Show HN: I made an elegant SwiftUI timeline

#39

FYI you can use ffmpeg to encode gif as h264/h265 mp4 videos of varying quality or convert to webm which can be played from an img tag, all of which will be orders of magnitude smaller. Simplest form: ffmpeg -i foo.gif -c:v libx264 -crf 22 foo.mp4 You can vary crf to change the size to quality trade-off.

I've replaced most of the gifs with embedded videos. Page loading size is around ~100 mb now
Post reply on HN