Okay
  Public Ticket #3145462
on load
Closed

Comments

  • stephen started the conversation

    when the webste loads the slider does not display.Instead it is a white and only works when i left-click the screen..... This only happens in desktop view.  customers have said it is confusing so how do we get the slider to animate or display as soon as the website loads thanks

  •  69
    John replied

    Hi Stephen,

    Thank you for getting in touch with us. My name is John, and I'm happy to assist you today.

    This sounds like you're using a site optimizer plugin like WP Rocket with the option enabled to delay JavaScript execution until users interact with the page. Other caching plugins and similar solutions have their own version of this feature, so I'd recommend browsing through their settings. 

    Best Regards,
    John | Kreatura Dev Team

  • stephen replied

    ok. why does it work fine on phones??


    if i disable the javascript the site will takes to load no?  is there a way to force the slider to always just work?

  •  69
    John replied

    The plugin you're using likely checks the viewing device and acts accordingly. For example, some plugins count mouse movement as an interaction, but you don't have a mouse cursor on mobile devices, so it won't wait for such a user action.

    You don't have to disable JavaScript itself. On the contrary. You need to find that option you've likely manually enabled in the past, which delays JavaScript execution. If the plugin you're using has an option to exclude certain scripts from these restrictions, then you might be able to do this with LayerSlider, but I'd recommend just disabling this feature altogether. The important thing is that a feature like this doesn't affect LayerSlider alone. It affects your entire site. LayerSlider might just be more noticeable since it's in front and center.

    Best Regards,
    John | Kreatura Dev Team