I have solved it myself. It was a different technique to handle in JQuery. Please find the below code as the solution
<pre lang="Javascript">$(function () {
$(".loader").fadeOut("slow");
});
instead of
$(window).load(function () {
$(".loader").fadeOut("slow");
})