Home Forums WoodMart support forum Lazy Load Threshold?

Lazy Load Threshold?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #62406

    mazs91
    Participant

    Dear Support,

    I want to set Lazy Loading Threshold to 500px. How can I do it with woodmart?

    Mazhar

    #62409

    Artem Temos
    Keymaster

    Hi,

    What threshold do you mean? Do you have any examples?

    Thank you

    #62415

    mazs91
    Participant

    Please read this, I do not know how to explain this technically. In every major lazy load plugin, there is an option to set this value.

    https://docs.wp-rocket.me/article/1032-adjust-lazyload-threshold

    #62416

    Artem Temos
    Keymaster

    Unfortunately, there is no such option in our theme at the moment. We will consider adding it in our future updates.

    Kind Regards

    #62417

    mazs91
    Participant

    Can I paste a function in the function.php to set this value? Below is how you set it for the WP Rocket plugin. They also do not have an option to set it from the front end..

    Users are waiting for the images to load, which is a bad user experience…

    function rocket_lazyload_custom_threshold( $threshold ) {
    return 100;
    }
    add_filter( ‘rocket_lazyload_threshold’, ‘rocket_lazyload_custom_threshold’ );

    #62431

    Artem Temos
    Keymaster

    This code is not related to our theme and will not work with WoodMart.

    #62544

    mazs91
    Participant

    Yes, I know this code will not work with Woodmart. However, Can you give me a similar code that will work with your theme? I just want the images to load quickly and increase the threshold.

    Mazhar

    #62559

    Artem Temos
    Keymaster

    There is no such kind of “hook” in our theme. We will consider it in our future updates.

    #67895

    mazs91
    Participant

    Hi guys,

    Is this feature in the to-do list? Any idea when it will be available?

    Mazhar

    #67903

    Artem Temos
    Keymaster

    Hi,

    Sorry, but we don’t have an exact date when this option will be added. It is in the feature requests list.

    Regards

Viewing 10 posts - 1 through 10 (of 10 total)