display div while load

HTML
<script>
  $(window).load(function() {
    $('#loading').hide();
  });
</script>
Source

Also in HTML: