Created
August 15, 2014 18:17
-
-
Save kalenjohnson/ec15d227583ce3f4fcd2 to your computer and use it in GitHub Desktop.
Show loader on page
This file contains hidden or 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
(function($) { | |
jQuery(window).load(function($){ | |
// Turn off the page loader | |
jQuery('#ajax-loader').fadeOut(500); | |
}); | |
})(jQuery); | |
// CSS | |
#ajax-loader { | |
position: fixed; | |
z-index: 110; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
background: black url(../img/ajax-loader.gif) center no-repeat; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment