<style>
/*Loader*/
.dimdiv {z-index:1100 !important; position:fixed; background-color:rgba(0,0,0,0.6); width:100%; height:100%; top:0; left:0;}
.loader {
position: absolute;
left: 50%;
top: 50%;
z-index: 1000 !important;
width: 150px;
height: 150px;
margin: -75px 0 0 -75px;
border: 8px solid #f3f3f3;
border-radius: 50%;
border-top: 8px solid #3498db;
width: 120px;
height: 120px;
-webkit-animation: spin 2s linear infinite;
animation: spin 2s linear infinite;
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
<script>
window.onload = function() {
$('.dimdiv').hide();
};
</script>
<div class="dimdiv">
<div class="loader"></div>
</div>