]> git.mxchange.org Git - friendica.git/blobdiff - view/js/main.js
Frio - rise version
[friendica.git] / view / js / main.js
index 88cfe89ee6b41727e872fc6ed61d67ceb3fe731f..4788d90a830cc6e4296c024d66d956253b42024f 100644 (file)
@@ -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);
                                        }