Load rev sliders conditionally


  • Member
    muis
    September 20, 2016 at 2:30 pm #29932

    Hi,

    Right now I have two revolution sliders elements on my page, one for desktop and one for mobile.
    One hidden for the other.
    When I see my network activities in chrome devtools mobile view, I see both background images are being downloaded.
    Instead I would like to only have downloaded the desired rev slider html and images.
    I believe this will optimize page download times and minimize download sizes.

    The solution I think is adding the rev sliders shortcodes conditionally somewhere.
    I’ve seen this solution: http://stackoverflow.com/questions/37666445/how-to-load-a-specific-slider-revolution-for-mobile-only
    I just dont understand how to name the custom shortcode for use.

    How can I achieve this or is there another simpel solution?

    Thanks in advance.

    Regards Daniel

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.