DEV Community

Discussion on: Web performance for a Frontend developer

Collapse
 
oathkeeper profile image
Divyesh Parmar • Edited

One of my senior also mentioned that Images should be served in ".webp" to optimize images for fast loading.
Bundle files should be served inn gZype format to optimize js-files for fast loading.

Need to make PWA (Progressive Web App), to cache JS-files to load faster from 2nd time refresh.

But I'm not sure that everyone should go to the PWA path of development.

Collapse
 
mohandere profile image
Mohan Dere

Image formats like JPEG 2000, JPEG XR, and WebP often provide better compression than PNG or JPEG, which leads to faster downloads and less data consumption.

Well, peoples can partially adopt PWA by using benefits of the service worker to cache a few resources like fonts, images, styles, scripts, etc. and then moving to other approaches.

Collapse
 
oathkeeper profile image
Divyesh Parmar

I am still in learning may I know what are other approaches, and also from my little experience I always feel that performance of a site with simple HTML, JS, CSS is way better than when we create them in any JavaScript framework.