<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>303995</bug_id>
          
          <creation_ts>2025-12-11 07:48:05 -0800</creation_ts>
          <short_desc>Implement HTML video and audio element lazy-loading via the loading attribute</short_desc>
          <delta_ts>2026-03-13 07:45:34 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Performance</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>sjehl</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jer.noble</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2165103</commentid>
    <comment_count>0</comment_count>
    <who name="">sjehl</who>
    <bug_when>2025-12-11 07:48:05 -0800</bug_when>
    <thetext>This is a request to add support for the loading attribute for HTML video elements, which would facilitate lazy-loading for video.

The loading attribute for video would use similar conventions to img and iframe, where the attribute has precedent, and provides performance benefits. It would have possible values of eager and lazy. When the loading attribute value is lazy, loading of any video or poster image data, as well as autoplay playback, must defer until layout is known and the video is in the viewport.

As an aside, we are interested in helping implement a patch for this.

Related links:

- HTML Standard Spec Change Proposal https://github.com/whatwg/html/pull/11980
- Github Issue https://github.com/whatwg/html/issues/10376
- Mozilla Standards Position: Positive https://github.com/mozilla/standards-positions/issues/1325
- Webkit Standards Position: Pending https://github.com/WebKit/standards-positions/issues/586
- Corresponding Gecko Bug Tracker:  https://bugzilla.mozilla.org/show_bug.cgi?id=2005072</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2166958</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-12-18 07:49:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/166791801&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2174580</commentid>
    <comment_count>2</comment_count>
    <who name="">sjehl</who>
    <bug_when>2026-01-23 13:25:08 -0800</bug_when>
    <thetext>Proposal now updated to include audio elements https://github.com/whatwg/html/pull/11980</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2178930</commentid>
    <comment_count>3</comment_count>
    <who name="Credo Duarte">cduarte</who>
    <bug_when>2026-02-06 14:58:41 -0800</bug_when>
    <thetext>Pull request: https://github.com/Squarespace/WebKit/pull/29</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2178941</commentid>
    <comment_count>4</comment_count>
    <who name="Credo Duarte">cduarte</who>
    <bug_when>2026-02-06 15:32:08 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/58084</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2179443</commentid>
    <comment_count>5</comment_count>
    <who name="Credo Duarte">cduarte</who>
    <bug_when>2026-02-09 07:21:33 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/58207</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2179450</commentid>
    <comment_count>6</comment_count>
    <who name="Credo Duarte">cduarte</who>
    <bug_when>2026-02-09 07:54:41 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/58208</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2190017</commentid>
    <comment_count>7</comment_count>
    <who name="">sjehl</who>
    <bug_when>2026-03-13 07:45:34 -0700</bug_when>
    <thetext>Some updates: The PR links above are incorrect. 

Latest Webkit implementation PR is here https://github.com/WebKit/WebKit/pull/58220

Webkit Standards Position is marked Positive and will close with that status on March 19 https://github.com/WebKit/standards-positions/issues/586#issuecomment-4048602778

HTML Spec PR is stage 3 and approved https://github.com/whatwg/html/pull/11980</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>