X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjs%2Fmain.js;h=4788d90a830cc6e4296c024d66d956253b42024f;hb=f9fe162f2fa4a2142e8157ca2a7f20f7b0efeced;hp=88cfe89ee6b41727e872fc6ed61d67ceb3fe731f;hpb=5fb8c758fdf83512592f601be5de658639d7970b;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); }