Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#56356 closed defect (bug) (invalid)

Images not lazy loading when lazy loading is enabled

Reported by: outbwebdev's profile outbwebdev Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:

Description

Hello!
I noticed a huge slowdown in our website's loading and have been troubleshooting it for several days. Today, I realized none of my images were set to lazy loading. I have been going through every image on my pages and changing that setting to "enable lazy loading"; however, when I inspect the pages, the images are still showing as loading="eager".

Our website: https://outbranding.com/
Relevant page: https://outbranding.com/about-us/
Wordpress version: WordPress 6.0.1 running Enfold theme
PHP version: 7.4.30

Attachments (1)

Screenshot 2022-08-09 125842.png (424.9 KB) - added by outbwebdev 3 years ago.
Relevant screenshot

Download all attachments as: .zip

Change History (2)

@outbwebdev
3 years ago

Relevant screenshot

#1 @desrosj
3 years ago

  • Component changed from Help/About to Media
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 6.0 deleted

Hi @outbwebdev,

Welcome to Trac!

Sorry that you are having issues on your site. Looking at the markup in your screenshot, it looks like loading is set to eager on the image tag, which is not the default. WordPress will try and use lazy whenever possible.

It also looks like there are some attributes and classes related to something called avia that are indicate that (whether a plugin or theme) is also trying to control lazy loading. I would reach out the developers of that plugin or theme for help, or open a ticket in the WordPress.org Support Forums. That is a more appropriate location for a support request like this.

Note: See TracTickets for help on using tickets.