openAOD / Central

https://openaod.org
MIT License
0 stars 2 forks source link

Suggestions to improve the frontend user experience #14

Closed ChlorinePentoxide closed 1 year ago

ChlorinePentoxide commented 2 years ago

The new PatternHouse portal frontend and the new openAOD website has been deployed.

Few of the Highlights

@aryashah2k @cyberbuddy-manas @Daksh777 @eshan1925 Please give it a try and let me know if you have any suggestions.

Daksh777 commented 2 years ago

I instantly noticed that the PatternHouse website is extremely slow and after checking the network tab I saw that it's requesting every single image in one go and that has to be fixed.

ChlorinePentoxide commented 2 years ago

@Daksh777 Yes! That is design is intentional. The images shall be converted to a compressed format (WebP), we are also working of getting a CDN provider on board to help speed up load times, and latency.

Daksh777 commented 2 years ago

@ChlorinePentoxide Could we perhaps load only some images and then lazy load all others when the user scrolls down? I'm not sure if only compression and CDN will help so much.

ChlorinePentoxide commented 2 years ago

@Daksh777 Hmm, ok, that is possible. I have enabled lazy loading on all images. I used Google Lighthouse to measure the improvement -- The performance score jumped from 79 to 87. We should be able to squeeze more performance by CDNs, new formats, and minifying CSS and JS code.

Daksh777 commented 2 years ago

One more suggestion, fix the width and height of all image elements. Lazy load won't work properly because all images will initially be on the viewable screen, if we fix the sizes of the images then the DOM won't shift.

ChlorinePentoxide commented 2 years ago

@Daksh777 The images already have a fixed width, should I fix the height as well?

ChlorinePentoxide commented 2 years ago

Fixed that.

ChlorinePentoxide commented 2 years ago

Switched to CDN for the Image assets.

Daksh777 commented 2 years ago

The speeds are quite better now, amazing work @ChlorinePentoxide!