here's how I optimized video assets on my site and improved perceived performance:
- added a tiny ( ~30px wide ) `base64` encoded blurred inline image for each snippet, rendered as an <img> underneath the video ( renders instantly! )
- moved all the videos to @Cloudflare CDN. previously was using @nextjs `/public` local path. which was fine when I had only 2-3 videos
- added both `.webm` and `.mp4` formats via <source> elements ( .mp4 as fallback in case browser doesn't support )
Looking for a non-vegetarian and non-smoker flatmate to occupy a room in a 4BHK in Sobha Magnolia. For deets, please DM.
@BangaloreRoomi
https://t.co/HNqAcIvXwa