Add more prefetching of components

This commit is contained in:
kolaente 2020-07-27 19:53:19 +02:00
parent bc7e7dd865
commit b1b5398c56
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
17 changed files with 199 additions and 32 deletions

View file

@ -29,7 +29,8 @@
<script>
import ListService from '../../../services/list'
import ListModel from '../../../models/list'
import multiselect from 'vue-multiselect'
import LoadingComponent from '../../misc/loading'
import ErrorComponent from '../../misc/error'
export default {
name: 'listSearch',
@ -41,7 +42,12 @@
}
},
components: {
multiselect,
multiselect: () => ({
component: import(/* webpackPrefetch: true *//* webpackChunkName: "multiselect" */ 'vue-multiselect'),
loading: LoadingComponent,
error: ErrorComponent,
timeout: 60000,
}),
},
beforeMount() {
this.listSerivce = new ListService()