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