climbjios-sg / climbjios-app

The community for climbers 🧗
https://www.climbjios.com/
GNU General Public License v3.0
25 stars 4 forks source link

fix: change to preload metadata #240

Closed therizhao closed 1 year ago

therizhao commented 1 year ago

Describe your changes

Fix video component to change to preload="metadata"

preload="auto" is wasting alot of streaming minutes on Cloudflare, that are not viewed

Before preload="auto"

image

After preload="auto" (3 Nov)

image

Every 1000min costs USD1.

preload="metadata" works fine to as it fetches the video placeholder image and a tiny bit of the video. We could dramatically reduce costs, with tiny impact on UX.

See https://clubmate.fi/what-does-the-preload-attribute-in-the-video-element-do

Issue ticket number and link

Screenshots (if appropriate):

Checklist before requesting a review