improve column switching performance
This commit is contained in:
parent
624020dd01
commit
8813694039
|
@ -15,6 +15,7 @@
|
|||
<script>
|
||||
import { importTimeline } from '../../_utils/asyncModules'
|
||||
import { store } from '../../_store/store'
|
||||
import { scheduleIdleTask } from '../../_utils/scheduleIdleTask'
|
||||
|
||||
export default {
|
||||
oncreate() {
|
||||
|
@ -25,7 +26,12 @@
|
|||
},
|
||||
store: () => store,
|
||||
data: () => ({
|
||||
importTimeline: importTimeline()
|
||||
importTimeline: importTimeline().then(timeline => {
|
||||
return new Promise((resolve) => {
|
||||
// make column-switching more responsive by delaying this load
|
||||
scheduleIdleTask(() => resolve(timeline))
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue