Last active
August 29, 2015 14:17
-
-
Save enlacee/e732b25b4123d163073c to your computer and use it in GitHub Desktop.
load jquery mobile for tiny senconds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout(function(){ | |
$.mobile.loading('show'); | |
},100); | |
$( "header" ).fadeOut( 1, function() { | |
setTimeout(function(){ | |
$( "header" ).fadeIn(); | |
$.mobile.loading('hide'); | |
},2000); | |
}); | |
$( window ).on( "orientationchange", function( event ) { | |
setTimeout(function(){ | |
$.mobile.loading('show'); | |
},100); | |
$( "header" ).fadeOut( 1, function() { | |
setTimeout(function(){ | |
$( "header" ).fadeIn(); | |
$.mobile.loading('hide'); | |
},2000); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment