• Resolved thisisbbc

    (@thisisbbc)


    Hey guys,

    We’re using a smooth scrolling script and since WP introduced the srcset attribute we’re experiencing abnormal lagging. You probably wouldn’t notice this without a smooth scroll script though.

    If I go into the console and remove the srcset attribute related code, I get a consistant smooth scrolling across our pages. This is mostly affecting WooCommerce pages, like our archive and shop pages :

    https://nationhats.staging.wpengine.com/shop/
    https://nationhats.staging.wpengine.com/products/gender/mens-hats/

    To be even more specific, the lagging occurs when the browser viewport is visualizing a products list.

    Our product image flipper (PIF) script double the featured image for each product, which emphasize even more the problem. Although even if we deactivate PIF the problem is still noticeable enough to affect the user experience.

    I’m doing these tests on a business computer which has more computing power than needed, so hardware isn’t to blame.

    Keeping a smooth user experience is as important as saving bandwidth and getting the page to load as fast as possible. Is there something we can do about this?

    Thanks!

    Kind regards,
    B

    https://www.ads-software.com/plugins/ricg-responsive-images/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Jasper de Groot

    (@jaspermdegroot)

    Hi,

    Is that “smooth scroll script” still active on your site? Because I don’t notice any problem when I visit it.

    Thread Starter thisisbbc

    (@thisisbbc)

    Hello Jasper,

    Thank you for the help. I had deactivated it indeed, sorry for that.
    I just added the script back again.

    Looking forward to hearing back from you!

    Kind regards,
    B

    Thread Starter thisisbbc

    (@thisisbbc)

    Note : I am not sure why but the lagging is quite less noticeable now compared to when I created the ticket.

    No major modification a part from the fact we removed our fixed-top navbar (I’ve read something about the “fixed” property causing smoothness issues). This might have done the trick for us.

    I’ll let you know in case I find a way to reproduce the problem.

    Plugin Contributor Jasper de Groot

    (@jaspermdegroot)

    Hi,

    I am glad that you resolved it. I am going to mark this topic as resolved for now. You can always open a new one if there is still something to look into.

    Off topic: If I were you I would really remove that smooth scroll script. Scroll hijacking is considered a very bad practise! I remember I visited your site before to look into an issue and then I was completely unable to scroll anywhere besides top or bottom, using the trackpad on my Macbook. Now it’s not that bad but it’s still very annoying.

    Thread Starter thisisbbc

    (@thisisbbc)

    Hey Jasper,

    Thank you for the hint and I agree with you, I’ve come to realize there are a lot more cons than pros ??

    Topc closed. Have a great day!

    Best regards,
    B

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Performance issue related to srcset attribute’ is closed to new replies.