so i have this loading screen that displays information while the page is loading but because of faster internet speeds this can be displayed in a flash.. I would like to add a minimum display time! this is my current code
jQuery(window).load(function() {
jQuery('.pageLoad').animate({
opacity: 0
}, 800, function() {
jQuery('.pageLoad').css({
display: 'none'
});
});
});
How can i do this?
You could put your fade-out method in a function and call that after an xx number of seconds from
$(document).ready()
:As mentioned by @Rayf, if that piece of info should be read, regardless of page loading speed, you should add some delay to it like this:
Inside comments is the roughly explanation about how it works