API combine two sliders - performance issues

info's Avatar


05 Nov, 2017 08:32 PM

I would like to combine two sliders. When I klick next in one slider the other slider should go to the next content too.
var slider1 = $("#royalSlider").data('royalSlider');
var slider2 = $("#contentslider2").data('royalSlider');
slider1.ev.on('rsAfterSlideChange',function() {
                slider2.goTo( slider1.currSlideId);
this works fine - but it is slow. The second lider waits until the first slider is done. (That is what "AfterSlideChange" means). Do you have an idea how to combine the two sliders so that a click on next moves both sliders immediately to the next content?
Thank You

  1. Support Staff 1 Posted by Dmitry Semenov on 05 Nov, 2017 09:02 PM

    Dmitry Semenov's Avatar


    You move use rsBeforeMove -

    But the delay will still happen when swiping.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • index.html 2.7 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac