Comment by wewewedxfgdf

21 hours ago

webp is smaller than jpeg

https://developers.google.com/speed/webp/docs/webp_study

ALSO - the blog author could simplify - you don't need any code at all at the web browser.

The <img> tag automatically does motion jpeg streaming.