working as expectedJQuery load function with fading effects not working as expected

Posted by Roland on Stack Overflow See other posts from Stack Overflow or by Roland
Published on 2010-03-17T14:10:40Z Indexed on 2010/03/17 14:11 UTC
Read the original article Hit count: 290

Filed under:

I have the following scenario

jQuery('#content').fadeOut('slow',function(){

          jQuery('#content').load("detail.php?product="+imgID+"&category="+cat);

          jQuery('#content').fadeIn('fast');

      });

My problem however is that all the effects happen and when the effects are done, then only the contents of the PHP file loads into content, is there a better way so that the content is not slow in loading

© Stack Overflow or respective owner

Related posts about jQuery