Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #53675, comment 5


Ignore:
Timestamp:
07/18/2021 08:10:22 PM (3 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53675, comment 5

    v1 v2  
    1313Yes, but thinking these plugins should be adding the `loading` attribute to their HTML themselves. Such plugins can usually detect when a widget is at the top, in the sidebar, or in the footer.
    1414
    15 Looking at FSE/template parts, can probably use the same approach as with widgets: add `loading="eager"` when the image or iframe is expected to be at the top/above the fold, and `loading="lazy"` when in the middle of the page or in the footer.
     15Looking at FSE/template parts, can probably use the same approach as with widgets: while editing add `loading="eager"` when the image or iframe is expected to be at the top/above the fold, and `loading="lazy"` when in the middle of the page or in the footer.
    1616
    1717Lets look at this during 5.9.