pinafore/routes/_components/LazyPage.html

17 lines
321 B
HTML
Raw Normal View History

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