RSS Feed/News loading="lazy" on LCP images in core templates hurts PageSpeed scores

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
30,943
Points
823

Reputation:

Core templates apply loading="lazy" to LCP images, hurting PageSpeed scores

XenForo's bb_code_tag_attach, bb_code_tag_img, and attachment_macros templates apply loading="lazy" to all images indiscriminately, including the first visible image on a page, which is typically the Largest Contentful Paint (LCP) element.

This causes two PageSpeed Insights failures:
  • "lazy load not applied" (flagged as incorrect usage)
  • "fetchpriority=high should be applied."

The issue affects every...

Read more

Continue reading...
 
Status
Not open for further replies.
Top