Hey everyone, I've recently had a website designed, but the team didn't really optimize it well for performance. My homepage features a full-page video that's supposed to loop, but it's loading slowly from our web server and I want to improve that first-time user experience. I've seen sites with similar video setups that load effortlessly, so I'm curious how they do it. I came across BunnyCDN, which offers features like 'streaming,' but I'm not really sure if that's the best option for delivering videos effectively. I'd love any insights you all can share, preferably in layman's terms!
1 Answer
It's a bit of a combination of factors. You need to optimize your video carefully by compressing it and choosing the right format. The first few seconds should ideally be in slow motion or have minimal movement to ensure smooth playback without skipping frames. Content affects load times, so it's essential to think about your audience's internet speed and device too.
I've used Amazon S3 and found it works well, especially if your bucket is close to your audience. About the 'stream' feature, you can easily encode your video in formats like MP4 or WebM that support streaming. More advanced setups exist, but for your needs, a simple approach should suffice. Also, remember to size the video smaller than needed and use CSS to adjust it to the viewport, providing lower-resolution versions for mobile users to enhance performance.

You could even put CloudFront in front of that S3 bucket to boost loading speeds even more!