v147 · HTML

Media Loading Timeline

8 video and audio elements at varying scroll positions. Watch their state badges update as they enter the simulated viewport. Compare loading="lazy" vs loading="eager" and see how many MB are saved.

Loading mode:
Lazy mode active. Elements load only when they approach the viewport. Use the scroll slider to simulate scrolling down the page.
not loaded
in viewport
loaded
video
audio
0%

attribute fallback contract

The simulation below models loading thresholds; this contract check uses real media elements and verifies the spec fallback for invalid loading values.

invalid video.loading not run
invalid audio.loading not run
Click the button to set loading="not-a-mode" on fresh media elements.
Page timeline
viewport
0 loaded
8 deferred
0 MB data saved
lazy mode

references

implementation reference

Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗