3
I made a loading screen so I would like to make it work only when it is a time-consuming action and not with any load.
JQUERY
<script type="text/javascript">
$(window).load(function() {
$(".loader").fadeOut("slow");
});
</script>
CSS
.loader {
position: fixed;
left: 0px;
top: 0px;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
z-index: 99999;
background: url("#{resource['/compracam/images/loadin2.gif']}") !important;
opacity: .8;
}
Its operations are asynchronous / Ajax or synchronous?
– mcamara
If I’m not mistaken Synchronous
– Rafael Macedo