pinafore/routes/_components/LazyPage.html
2018-03-27 19:46:01 -07:00

17 lines
321 B
HTML

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