Okay
  Public Ticket #987376
layer slider is not working
Closed

Comments

  •  2
    virendra vyas started the conversation

    I have used the layer slider on my site https://www.painandspineclinics.com/ but from two days its not working. I have added a video in layer slider. 


  • [deleted] replied

    Hey virendra vyas,

    There are jQuery errors (jQuery is not defined) on your site. This usually means that your jQuery is not loaded or not in the right way. LayerSlider needs it be loaded in the header to be able to display the slider properly.

    If you're not familiar with jQuery you can try to use the Put JS includes to body advanced setting to see if that helps.

    Please also check if you're using the Rocketscript feature of Cloudflare, unfortunately it messes up jQuery therefore interferes with our plugin.

  •  2
    thibaultguerpillon replied

    Hi,

    Is there a way to have Rocketloader enabled with Cloudflare and your plugin working together?

    Are you going to fix this? Any tips?

    Right now, you are the only plugin that doesn't work with Rocketloader on my WP.

    Thanks, Thibault

  • [deleted] replied

    Unfortunately we are not able to release a fix for this as the problem is not generated on our end. Rocketscript is a method used to compress and asynchronously load scripts on page and it could easily break any WordPress plugin as it also interferes with jQuery. We're sorry but at the moment there is no option to use LayerSlider and Rocketscript together.

  •  2
    thibaultguerpillon replied

    Have you read this: https://support.cloudflare.com/hc/en-us/articles/200169436-How-can-I-have-Rocket-Loader-ignore-my-script-s-in-Automatic-Mode-

    You can add data-cfasync="false" to the JS file to bypass rocket loader.

    That would be great if you can implement it, in order for me and others to use Rocket Loader for our site.

    Thank you, Thibault

  • [deleted] replied

    Yes, we have come across this and similar threads in the past. 

    However this solution that Cloudflare provided would only work on an individually compiled site, it will not work properly on WordPress so you cannot apply it on LayerSlider.

  •  2
    thibotus01 replied

    i have found an alternative by using a local plugin that defer JS and works well.

    Thank you, Thibault