chrome and loader animation. (animation appears on small time in end)

Boomer531

New Member
I have one problem with Chrome browser. My site working with ajax (all pages loading by ajax). Before I starting load pages I showing loader block with animation (to show that script is loading new page). It works ok in FF but i Chrome loader animation appears after ajax is loaded (only for small moment). Loader block:\[code\]<div id="loader_wrapper"><div style="background: url(img/loader1.png) repeat scroll 0 0 transparent;"><img src="http://stackoverflow.com/questions/14559744/img/loader.gif" style="left:3px; top:3px; width:104px; height:104px;" /></div></div>\[/code\]And some example of script:\[code\]$('.linck_check').live("click", function(){ if($(this).hasClass('active') && $(this).attr('href')==check_url) return false; if(finish) return false; finish = 1; $('#loader_wrapper').show(0); clearInterval(IntervalGallery); clearInterval(IntervalGallery_small); $("#projects_in, .history_in, .dates_in, #publications_in, .big_b_in, #videos_in").smoothDivScroll("disable"); listings_val = 0; refresh_index = 1; if(parseInt($(this).attr('val'))>parseInt($('.linck_check.active').attr('val'))){linck_check_val = 1;} else{linck_check_val = 0;} $('.linck_check.active').removeClass('active'); $(this).addClass('active'); check_url = $(this).attr('href'); $('.linck_check[href="'+check_url+'"]').addClass('active'); if($.browser.msie && $.browser.version==7){check_url = check_url.replace(base_url, '');}; setLocation(check_url); ajax_linck(); return false; });\[/code\]Maybe someone already seen this problem?
 
Back
Top