DEV Community

Discussion on: Making dev.to Incredibly fast

Collapse
npras profile image
Prasanna Natarajan

You mentioned images are in webP format. But in the source code, and when inspecting any image in dev.to site, I only find pngs.

How is it done?

Collapse
kpthree profile image
Kunal Parekh

I believe this depends on browser. If you open in chrome all the images are webp format. It's a feature of cloudinary to detect the browser and serve the image in the format which is best for the requesting browser. It can be done by using f_auto flag in your cloudinary image request urls.