use double rAF instead of rIC for lazy pages
This commit is contained in:
parent
148b1f1b38
commit
bf0592aee4
|
@ -2,11 +2,13 @@
|
|||
<:Component {pageComponent} :params />
|
||||
{{/if}}
|
||||
<script>
|
||||
import { scheduleIdleTask } from '../_utils/scheduleIdleTask'
|
||||
|
||||
export default {
|
||||
oncreate() {
|
||||
scheduleIdleTask(() => this.set({revealed: true}))
|
||||
requestAnimationFrame(() => {
|
||||
requestAnimationFrame(() => {
|
||||
this.set({revealed: true})
|
||||
})
|
||||
})
|
||||
},
|
||||
data: () => ({
|
||||
revealed: !process.browser
|
||||
|
|
Loading…
Reference in a new issue