1
0

Add more prefetching of components

This commit is contained in:
kolaente
2020-07-27 19:53:19 +02:00
parent bc7e7dd865
commit b1b5398c56
17 changed files with 199 additions and 32 deletions

View File

@ -111,6 +111,8 @@
import NamespaceModel from '../../models/namespace'
import Fancycheckbox from '../../components/input/fancycheckbox'
import ColorPicker from '../../components/input/colorPicker'
import LoadingComponent from '../../components/misc/loading'
import ErrorComponent from '../../components/misc/error'
export default {
name: "EditNamespace",
@ -129,7 +131,12 @@
ColorPicker,
Fancycheckbox,
manageSharing,
editor: () => import(/* webpackPrefetch: true */ '../../components/input/editor'),
editor: () => ({
component: import(/* webpackPrefetch: true *//* webpackChunkName: "editor" */ '../../components/input/editor'),
loading: LoadingComponent,
error: ErrorComponent,
timeout: 60000,
}),
},
beforeMount() {
this.namespace.id = this.$route.params.id