Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have developed a site in ASP.Net website. Some 3 users have reported back with only the loading image unending. I saw in the task bar it says (1 item remaining) Downloading picture about:blank. I tried changing some settings in the browser and no success. When i remove the loading image it works fine. But i need the loading image also.


JavaScript
$(window).load(function () {
    $(".loader").fadeOut("slow");
})


CSS
.loader { 
        position: fixed; 
        left: 0px; 
        top: 0px; 
        width: 100%; 
        height: 100%; 
        z-index: 999999; 
        background: url('../images/page-loader.gif') 50% 50% no-repeat #000; 
        opacity:1; 
        filter: alpha(opacity=100); 
}


Can anybody help me on this issue?.
Posted
Updated 24-Mar-14 19:17pm
v4

1 solution

SQL
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");
    })
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900