mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Speedup boot
This commit is contained in:
parent
9158fcd0eb
commit
7cb24d4d3c
2 changed files with 8 additions and 19 deletions
9
dev/bootstrap.js
vendored
9
dev/bootstrap.js
vendored
|
|
@ -1,4 +1,4 @@
|
|||
import { doc, dropdownVisibility, Settings } from 'Common/Globals';
|
||||
import { dropdownVisibility, Settings } from 'Common/Globals';
|
||||
import { i18n } from 'Common/Translator';
|
||||
|
||||
import { root } from 'Common/Links';
|
||||
|
|
@ -111,11 +111,4 @@ export default App => {
|
|||
});
|
||||
};
|
||||
|
||||
window.__APP_BOOT = () => {
|
||||
const cb = () => {
|
||||
window.__APP_BOOT = null;
|
||||
App.bootstart();
|
||||
};
|
||||
('loading' !== doc.readyState) ? cb() : doc.addEventListener('DOMContentLoaded', cb);
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue