Make WordPress Core

Ticket #52347: 52347.3.diff

File 52347.3.diff, 951 bytes (added by audrasjb, 3 years ago)

By default, WordPress will add a <code>loading="lazy"</code> attribute to iframe tags when both width and height are specified

  • src/wp-admin/about.php

    diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php
    index b4676bb7da..c6452e10e1 100644
    a b require_once ABSPATH . 'wp-admin/admin-header.php'; 
    207207                                <p><?php _e( 'For years jQuery helped make things move on the screen in ways the basic tools couldn’t—but that keeps changing, and so does jQuery.' ); ?></p>
    208208                                <p><?php _e( 'In 5.7, jQuery gets more focused and less intrusive, with fewer messages in the console.' ); ?></p>
    209209                                <h3><?php _e( 'Lazy-load your iframes' ); ?></h3>
    210                                 <p><?php _e( 'Now it’s simple to let iframes lazy-load. Just add the <code>loading="lazy"</code> attribute to iframe tags on the front end.' ); ?></p>
     210                                <p><?php _e( 'Now it’s simple to let iframes lazy-load. By default, WordPress will add a <code>loading="lazy"</code> attribute to iframe tags when both width and height are specified.' ); ?></p>
    211211                        </div>
    212212                </div>
    213213