Okay
  Public Ticket #2491324
Page with Amelia extremely slow to scroll on Chrome
Closed

Comments

  • Yoann started the conversation

    Hello,

    I recently noticed that all the pages containing Amelia, inserted with a shortcode, are extremely slow to scroll when using google Chrome. No problem with Firefox, Explorer or Edge but Chrome doesn't seem to like Amelia very much... Being by far the most used browser, it is quite annoying! How can I solve this ?


    Thanks in advance for your help.

  • [deleted] replied

    Hello Yoann, 

    Apologies for replying a bit later, we don't work on weekends. 

    Unfortunately, there is some conflict with the theme Divi, if you have it, the slow scrolling issue comes up. (If you don't have Divi, please try out the script on your pages and see if it helps for your theme as well.)

    There are two solutions to this. Add this script: 

    <script>
     var links = document.getElementsByTagName('a');
     for (var i = 0; i < links.length; i++) {
       if (links[i].href.includes('#')) {
         links[i].classList.add('et_smooth_scroll_disabled');
       }
     }
     document.querySelector('body').classList.remove('et_smooth_scroll');
    </script>

    to the pages where you have your Amelia shortcode. Or disable Smooth scrolling in Divi theme options.