Skip navigation
here's how I optimized video assets on my site and improved perceived performance:
0:00 / 0:16

here's how I optimized video assets on my site and improved perceived performance:

Soren

@sorenblank8K followers

Visit on X

74,051 views

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 underneath the video ( renders instantly! ) - moved all the videos to Cloudflare CDN. previously was using Next.js `/public` local path. which was fine when I had only 2-3 videos - added both `.webm` and `.mp4` formats via elements ( .mp4 as fallback in case browser doesn't support )

Comments

Comments from the original post on X (Twitter)

No comments yet