[Support request] Must click twice on mobile links (Chrome, iOS) after page load

Home Forums Support [Support request] Must click twice on mobile links (Chrome, iOS) after page load

Home Forums Support Must click twice on mobile links (Chrome, iOS) after page load

Viewing 4 posts - 31 through 34 (of 34 total)
  • Author
    Posts
  • #2277377
    Ying
    Staff
    Customer Support

    Hi Peter,

    Please open a new topic and link us to your site.

    Let me know!

    #2278418
    Peter

    Hi Ying,

    solved the issue. Read in another topic that the scroll to the top button caused the issue. After disabeling the button everything worked as expected.

    #2279673
    Ying
    Staff
    Customer Support

    Glad to hear that 🙂

    #2447281
    Katarzyna

    Hey,

    I had the same issue. This is actually a known bug on iOS that sometimes occurs when using the Delay JS. This bug causes links to not work until they are clicked twice.

    I fixed the issue adding a Hook element:

    Hook: wp_head
    Location: Entire Site

    
    <script src="https://cdnjs.cloudflare.com/ajax/libs/fastclick/0.6.0/fastclick.min.js" integrity="sha512-oljyd1wg75alHReTpDvNIQ4Yj1wZwGxxZhJhId3vr2dKY+26/r/wmMrImwDgin03+7wxyhX+adOQB/2BTvO5tQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    
    <script>if ('addEventListener' in document) {document.addEventListener('DOMContentLoaded', function() {FastClick.attach(document.body);}, false);}</script>
    

    More details here => https://perfmatters.io/docs/delay-javascript/#ios-double-click

Viewing 4 posts - 31 through 34 (of 34 total)
  • You must be logged in to reply to this topic.