I have following html
<body>
<div class="menus"></div>
<div class="maincontent"></div>
<div class="footer"></div>
</body>
Now when the page loads I want to show div class menus and footer and until the page loads loader image in div maincontent. How am I to achieve this? I tried putting loader div inside maincontent and using $(window).load(function(){})
but to no avail. Any idea and suggestions is welcome.