how to add loader before data load in php code example
Example: display div while load
<script>
$(window).load(function() {
$('#loading').hide();
});
</script>
<script>
$(window).load(function() {
$('#loading').hide();
});
</script>