jQuery wait

jQuery.fn.wait = function(time, type) {
time = time || 1000;
type = type || "fx";
return this.queue(type, function() {
var self = this;
setTimeout(function() {
jQuery(self).dequeue();
}, time);
});
};

Anwendung:
jQuery(SELECTOR).wait().css('display','block');