The feedback mechanism should differ depending on the length of time the user waits. Less than 0.1 seconds and the user will not notice.
1 10 , gif, , . . http://www.ajaxload.info/
div "" jquery, .
function showProcessing(){
$("#processing").fadeIn("fast");
}
function hideProcessing(){
$("#processing").fadeOut("fast");
}
10 .
. .
. , , . , . Neil Mix Threading JavaScript 1.7, .
function startAppend(){
for (var i = 0; i < 1500; i++){
appendContent();
}
}
clickLink.onclick = function(){
clickLink.style.color = "red";
setTimeout('startAppend()', 10)
};