zowe / zowe.github.io

Zowe.org website development
https://zowe.org
Creative Commons Attribution 4.0 International
13 stars 34 forks source link

Faster page load by using webp #814

Closed 1000TurquoisePogs closed 1 year ago

1000TurquoisePogs commented 1 year ago

The Zowe site can load slowly if your network is slow, because some of the images are quite large for what they are. I did some research and saw the best compromise between quality, size, and browser support is to have large PNGs be converted into high quality webp images. Every browser supports these, but the file size is much smaller Overall, zowe website loaded about 13mb of images, but after this change, its about 2mb.

DivergentEuropeans commented 1 year ago

@1000TurquoisePogs For some reason, this breaks the question box. The box is not broken in 'master' - strangely zowe.org has a broken (not appearing) question box yet building and installing a fresh 'master' has it working. Funky stuff

DivergentEuropeans commented 1 year ago

@balhar-jakub I let Rose know because she originally asked me to take a look at why the question box isn't appearing on the website but my hunch is zowe.org isn't deploying 'master' for some reason. I'll tag you here in case you have any thoughts

balhar-jakub commented 1 year ago

Zowe did deploy the last changes in the master. There is no change that wasn't deployed, that I am aware of.