Nowadays there are more features implemented on web designing.So complexity and size of the web site automatically increases. It is also affected the required time to load a web site.While loading web sites, it loads part by part and it depends on the internet speed. Jquery loader is a best option to load a comprehensive website.Here the web site loaded 100% first, during this time it shows like an intro in front of the user.when the site fully loaded user will get the actual display. So it is very easy to use even in low internet speed.
Jquery Loader egs:
http://www.jqueryscript.net/loading/jQuery-Plugin-For-Animated-Fullscreen-Page-Loader-Intro-Loader.htmlhttp://smallenvelop.com/display-loading-icon-page-loads-completely/
Below is a sample HTML markup for the Jquery Loader
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
<style> | |
.no-js #loader { display: none; } | |
.js #loader { display: block; position: absolute; left: 100px; top: 0; } | |
.se-pre-con { | |
position: fixed; | |
left: 0px; | |
top: 0px; | |
width: 100%; | |
height: 100%; | |
z-index: 9999; | |
background: url(http://smallenvelop.com/wp-content/uploads/2014/08/Preloader_11.gif) center no-repeat #000; | |
} | |
</style> |
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
<div class="se-pre-con"></div> | |
Simple PreLoader |
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
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> | |
<script> | |
//paste this code under head tag or in a seperate js file. | |
// Wait for window load | |
$(window).load(function() { | |
// Animate loader off screen | |
$(".se-pre-con").fadeOut("slow");; | |
}); | |
</script> |
No comments :
Post a Comment