using dynamic import for dialogs and widgets to speed up initial load

This commit is contained in:
zadam
2019-08-20 21:40:47 +02:00
parent b818f020a7
commit fab4c59f9b
72 changed files with 1393 additions and 450 deletions

View File

@@ -16,7 +16,7 @@ function addTabHandler(handler) {
tabHandlers.push(handler);
}
async function showDialog() {
export async function showDialog() {
utils.closeActiveDialog();
glob.activeDialog = $dialog;
@@ -38,11 +38,6 @@ async function saveOptions(options) {
infoService.showMessage("Options change have been saved.");
}
export default {
showDialog,
saveOptions
};
addTabHandler((function() {
const $themeSelect = $("#theme-select");
const $zoomFactorSelect = $("#zoom-factor-select");