Skip to content

Instantly share code, notes, and snippets.

@hzmangel
Last active December 24, 2015 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hzmangel/6737026 to your computer and use it in GitHub Desktop.
Save hzmangel/6737026 to your computer and use it in GitHub Desktop.
Flexslider and jQuery mobile

jQuery mobile is using ajax loading of pages, which may not show flexslider correctly, especially for page with more than one image. Here are two solutions:

  1. Disable the ajax loading for special pages:

    $(document).bind("mobileinit", function(){ $.mobile.ajaxEnabled = false; });

  2. Add rel="external" to the link of flexslider page to force reinit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment