Rev Slider not working on Safari

Hi. We use Revolution Slider with HTML5 videos on numerous sites and they all work great in X and Pro on all tested browsers, except for one! This one site looks great in Chrome and Firefox but won’t load the sliders in Safari. The settings all appear to be the same as our other sites, so I’m not sure why it’s not working. We are using the latest versions of everything and I’ve tried disabling all plug-ins except Rev Slider - no change. Do you have any ideas?

Thank you so much!

Hello Jeanne,

Thanks for writing in!

The custom code added in your child theme’s functions.php could be causing the issue:


function defer_parsing_of_js( $url ) {
    if ( is_user_logged_in() ) return $url; //don't break WP Admin
    if ( FALSE === strpos( $url, '.js' ) ) return $url;
    if ( strpos( $url, 'jquery.js' ) ) return $url;
    return str_replace( ' src', ' defer src', $url );
}
add_filter( 'script_loader_tag', 'defer_parsing_of_js', 10 );

Please remove this custom code and test your site again. Kindly let us know how it goes.

Oh my goodness. That was it! Everything works perfectly now. THANK YOU THANK YOU!! I’m not even sure why that code was added to begin with, but nothing seems to be broken without it. Thank you again for your help!!

Hi @jquinn33,

You’re welcome and it’s our pleasure to help you. If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.