• I would like to skip lazy load in the featured posts image. Can you help me?
    Thank you so much.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author presscustomizr

    (@nikeo)

    How you handle this is going to depend on what all you are using to construct your site.
    For Hueman, at the theme level you can do the following:
    In the customizer menu, you can go to advanced options, and then performance and SEO options and choose your image loading preferences.

    If you are using the Nimble Builder Plugin, you can do it under site optimization options:
    https://docs.presscustomizr.com/article/401-how-to-create-a-video-background-with-nimble-builder-wordpress-plugin#:~:text=In%20order%20to%20reduce%20page,global%20settings%20%3E%20page%20speed%20optimizations.

    And, finally, so that it doesn’t seem like we are just pushing our own plugin, there is a plugin out there designed specifically to handle this called Disable Lazy Loading. I can’t vouch for that plugin, but reviews seem good enough.

    Thread Starter Percal

    (@percal)

    Thank you for the answer.
    We are not using the Builder, and at “Performance and SEO” options we have checked “Load images on scroll”. But this option is for all images, and we are looking for any way to don’t lazy load only the image in the featured post (in our case is just one image, because we have only one featured post, but is xxlarge size). And we were thinking maybe on any way to do that with CSS.

    Thread Starter Percal

    (@percal)

    Well, this is a really useful support forum.
    Thank you for so much attention.

    • This reply was modified 2 years, 8 months ago by Percal.

    I agree with you, @percal, and, in fact, so does WordPress (see below)! Featured images on blog posts (and pages) should not be lazy-loaded.

    Also, on the home page, e.g. https://demo-hueman.presscustomizr.com, which includes a list of blog posts, the first (big) featured image should not be lazy-loaded. Yet, with Hueman even this is lazy-loaded. The featured image of the first post is unfortunately lazy-loaded, and surprisingly has both

    no-lazy
    and
    loading="lazy"

    attributes attached to it, which seems contradictory and strange to me (but I’m not an expert). What do you think, @nikeo?

    On @percal’s main page (https://eltrapezi.com/), the featured image of the first post is lazy-loaded, as it is on my own site. It has the loading=”lazy” attribute, but not the no-lazy attribute that Hueman’s demo site has.

    Anyway, there is a very large number of people asking for ways to fix this issue. After extensive googling, it seems part of the problem could be related to WordPress core.

    In this WordPress core development post I found this very interesting paragraph:

    So far, fine tuning which images and iframes should be lazy-loaded or not has been possible using the wp_img_tag_add_loading_attr and wp_iframe_tag_add_loading_attr filters, and these are still available as before. However, to improve the performance out-of-the-box without requiring a developer to customize the behavior, WordPress will now skip the very first “content image or iframe” on the page from being lazy-loaded. The term “content image or iframe” here denotes any image or iframe that is found within content of any post in the current main query loop as well any featured image of such a post. This applies to both “singular” and “archive” content: In a “singular” context the first image or iframe of the (only) post is not lazy-loaded, while in an “archive” context the first image or iframe of the first post in the query is not lazy-loaded.

    So, featured images should not be lazy-loaded, yet they are… In the comments section of the above-mentioned post, there are several experienced developers pointing out the fact that lazy-loading does not work properly.

    The Hueman theme’s original developer, Alexander Agnarson, even writes:

    I also experience issues with disabling lazy loading on homepage. Breaks all my themes that uses Flexslider on home in 5.9.

    Of course, Hueman also uses Flexslider.

    (Lazy-loading issues was part of why both my home page and pages/blog posts were missing the featured image and therefore messing up my site, as described here.)

    • This reply was modified 2 years, 8 months ago by yallaman.
    Thread Starter Percal

    (@percal)

    Thank you, @yallaman.
    But, as you can see, no support here, only silence.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Skip “Lazy load”’ is closed to new replies.