Closed Bug 1448785 Opened 7 years ago Closed 7 years ago

Videos on /firefox/ should only load on click

Categories

(www.mozilla.org :: Pages & Content, enhancement)

Production
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: agibson, Assigned: agibson)

References

()

Details

Attachments

(1 file)

There are currently 4 <video> elements on /firefox/, one of which uses preload="metadata" and the reamining preload="none". Whilst this provides browsers with hints for what to do with the videos on page load, these are only hints and may not be repsected by all user agents. Web Page Test results on 3G indicate the total page weight on load comes in around 2.5mb, and 56% of Bytes In consists of video resources [1]. We could improve page load time considerably (and save people their data allowance) by only loading the videos once thumbnails are clicked. I don't think any of the video content is critical enough to justify loading it ahead of time. [1] https://www.webpagetest.org/results.php?test=180326_B9_68f4cd0901fb20bdd8d904b729aa56f6
Assignee: nobody → agibson
Status: NEW → ASSIGNED
Commit pushed to master at https://github.com/mozilla/bedrock https://github.com/mozilla/bedrock/commit/6bc6aa7c1284ac41421339c8e1daea5098f531cd [fix bug 1448785] Videos on /firefox/ should only load on click (#5527)
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: