X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjs%2Fmain.js;h=4788d90a830cc6e4296c024d66d956253b42024f;hb=c1933fcb13db2f71aa3a6eacefde85fe0f5b36c1;hp=88cfe89ee6b41727e872fc6ed61d67ceb3fe731f;hpb=d0ea208d042617d0e3cb37b953dcef1f3e95af63;p=friendica.git diff --git a/view/js/main.js b/view/js/main.js index 88cfe89ee6..4788d90a83 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -302,7 +302,12 @@ $(function() { $('#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') { @@ -378,7 +383,7 @@ function NavUpdate() { $('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); }