$('#nav-notifications-menu').perfectScrollbar('update');
});
- NavUpdate();
+ // Asynchronous calls are deferred until the very end of the page load to ease on slower connections
+ window.addEventListener("load", function(){
+ NavUpdate();
+ acl.get(0, 100);
+ });
+
// Allow folks to stop the ajax page updates with the pause/break key
$(document).keydown(function(event) {
if (event.keyCode == '8') {
$('nav').trigger('nav-update', data.result);
// start live update
- ['network', 'profile', 'community', 'notes', 'display'].forEach(function (src) {
+ ['network', 'profile', 'community', 'notes', 'display', 'contacts'].forEach(function (src) {
if ($('#live-' + src).length) {
liveUpdate(src);
}