mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
optimize initial render
This commit is contained in:
parent
48765cc87d
commit
65be882b49
@ -9,6 +9,11 @@ import DesktopLayout from "./layouts/desktop_layout.js";
|
|||||||
import glob from "./services/glob.js";
|
import glob from "./services/glob.js";
|
||||||
import zoomService from './services/zoom.js';
|
import zoomService from './services/zoom.js';
|
||||||
|
|
||||||
|
bundleService.getWidgetBundlesByParent().then(widgetBundles => {
|
||||||
|
appContext.setLayout(new DesktopLayout(widgetBundles));
|
||||||
|
appContext.start();
|
||||||
|
});
|
||||||
|
|
||||||
glob.setupGlobs();
|
glob.setupGlobs();
|
||||||
|
|
||||||
if (utils.isElectron()) {
|
if (utils.isElectron()) {
|
||||||
@ -17,17 +22,8 @@ if (utils.isElectron()) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$('[data-toggle="tooltip"]').tooltip({
|
|
||||||
html: true
|
|
||||||
});
|
|
||||||
|
|
||||||
macInit.init();
|
macInit.init();
|
||||||
|
|
||||||
bundleService.getWidgetBundlesByParent().then(widgetBundles => {
|
|
||||||
appContext.setLayout(new DesktopLayout(widgetBundles));
|
|
||||||
appContext.start();
|
|
||||||
});
|
|
||||||
|
|
||||||
noteTooltipService.setupGlobalTooltip();
|
noteTooltipService.setupGlobalTooltip();
|
||||||
|
|
||||||
noteAutocompleteService.init();
|
noteAutocompleteService.init();
|
||||||
|
@ -115,6 +115,10 @@ export default class ImportDialog extends BasicWidget {
|
|||||||
this.$importButton.attr("disabled", "disabled");
|
this.$importButton.attr("disabled", "disabled");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.$widget.find('[data-toggle="tooltip"]').tooltip({
|
||||||
|
html: true
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async showImportDialogEvent({noteId}) {
|
async showImportDialogEvent({noteId}) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user