fedilove-ui/routes/_components/LazyPage.html

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>