mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Improve resource loaders
This commit is contained in:
parent
a250d84025
commit
151646f990
6 changed files with 66 additions and 56 deletions
19
dev/bootstrap.js
vendored
19
dev/bootstrap.js
vendored
|
|
@ -33,17 +33,22 @@ export default (App) => {
|
|||
|
||||
window.rl = rl;
|
||||
|
||||
const start = () => {
|
||||
window.setTimeout(() => {
|
||||
$html.removeClass('no-js rl-booted-trigger').addClass('rl-booted');
|
||||
|
||||
App.bootstart();
|
||||
}, Enums.Magics.Time10ms);
|
||||
};
|
||||
|
||||
window.__APP_BOOT = (fErrorCallback) => {
|
||||
domReady(() => {
|
||||
window.setTimeout(() => {
|
||||
if (window.rainloopTEMPLATES && window.rainloopTEMPLATES[0]) {
|
||||
if (window.document.getElementById('rainloop-templates-id')) {
|
||||
start();
|
||||
} else if (window.rainloopTEMPLATES && window.rainloopTEMPLATES[0]) {
|
||||
window.document.getElementById('rl-templates').innerHTML = window.rainloopTEMPLATES[0];
|
||||
|
||||
window.setTimeout(() => {
|
||||
$html.removeClass('no-js rl-booted-trigger').addClass('rl-booted');
|
||||
|
||||
App.bootstart();
|
||||
}, Enums.Magics.Time10ms);
|
||||
start();
|
||||
} else {
|
||||
fErrorCallback();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue