JorjaFox / website

FLF: Website
https://jorjafox.net
Apache License 2.0
1 stars 0 forks source link

[Site Speed] resize images #76

Closed Ipstenu closed 1 month ago

Ipstenu commented 1 month ago

Option 1 - Preload

Galleries slow down load. To help this, build out header to preload the images and help speed it up.

Options 2 - Smaller Images

Per that, the 'small' images are 788x788 - so we should change that to 200x200 instead and then click to show intermediary image (with a link to full?)

Ipstenu commented 1 month ago

Asked https://github.com/gethinode/hinode/discussions/1228

Ipstenu commented 1 month ago

https://www.brycewray.com/posts/2022/06/responsive-optimized-images-hugo/

Ipstenu commented 1 month ago

Turns out if I properly resize images, I don't need to preload the gallery! Yay!

Ipstenu commented 1 month ago

https://github.com/future-wd/hugo-responsive-images Could make my code … smaller

Ipstenu commented 1 month ago

Maybe https://github.com/dimsemenov/PhotoSwipe

Instead of the bs5 one, which really doesn't matter in the end...

Ipstenu commented 1 month ago

Or...

  1. Make a modal for all images, passing in the image id to make it active
  2. Use the built in gallery

https://getbootstrap.com/docs/5.3/components/modal/

https://getbootstrap.com/docs/5.3/components/carousel/