mirror of
https://github.com/friendica/friendica
synced 2025-04-26 17:50:11 +00:00
Call asynchronous JS after complete page load
This commit is contained in:
parent
1ca8d573e6
commit
b6e57989dc
2 changed files with 7 additions and 5 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue