Load notification after window load

This commit is contained in:
Ruud
2013-05-10 18:28:52 +02:00
parent a11cad619d
commit 49cf72e058
@@ -28,10 +28,12 @@ var NotificationBase = new Class({
$(App.block.notification).inject(App.getBlock('search'), 'after');
self.badge = new Element('div.badge').inject(App.block.notification, 'top').hide();
self.startInterval.delay($(window).getSize().x <= 480 ? 2000 : 1000, self);
});
window.addEvent('load', function(){
self.startInterval.delay($(window).getSize().x <= 480 ? 2000 : 100, self);
})
},
notify: function(result){