jQuery flicker using .load
Posted
by Dave Macaulay
on Stack Overflow
See other posts from Stack Overflow
or by Dave Macaulay
Published on 2010-03-29T16:36:51Z
Indexed on
2010/03/29
16:53 UTC
Read the original article
Hit count: 358
Hey guys,
I'm using jQuery to dynamically load php pages into my page using the .load() function, so far this has been successful but if you click on various links to update the div with the .load() it starts to flicker between the new clicked page and the old one, this is pretty annoying and has anyone got a fix?
Current code:
$(document).ready(function(){
$('a').click(function() {
$('#content').load($(this).attr("href"));
return false;
});
});
© Stack Overflow or respective owner