Jump to content

Lazy loading for Category Icons


Recommended Posts

I just tested the page in PageSpeed Insights and Google suggested to add lazy loading to category icons.

<img src="{file="$forum->icon" extension="forums_Icons"}" alt='' class='ipsItemStatus ipsItemStatus_custom {{if !\IPS\forums\Topic::containerUnread( $forum ) && !$forum->redirect_on}}ipsItemStatus_read{{endif}}'>

The icons also don't have width and height attributes.

What do you think about it?

Edited by SeNioR-
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...