Make WordPress Core

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


Ignore:
Timestamp:
07/18/2021 08:09:30 PM (4 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53675, comment 5

    initial v1  
    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
     15Looking 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.
     16
    1517Lets look at this during 5.9.