1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-12 18:28:03 +01:00
Pinafore-Web-Client-Frontend/routes/_components/LazyPage.html
2018-03-13 20:02:50 -07:00

15 lines
312 B
HTML

{{#if revealed}}
<:Component {pageComponent} :params />
{{/if}}
<script>
import { scheduleIdleTask } from '../_utils/scheduleIdleTask'
export default {
oncreate() {
scheduleIdleTask(() => this.set({revealed: true}))
},
data: () => ({
revealed: !process.browser
})
}
</script>