antoniputra antoniputra - 7 months ago 103
Javascript Question

Vuejs - Hide vuejs syntax when page loading

maybe this is a trivial question.

so, when I run my vuejs application on browser with enables throttling download speed (sets to low connection). I got unfinished vue syntax output in browser.

Vue js syntax appear in browser

I know we can trick this out with showing loading image before entire page has loaded, but it's there any best solution to fix this?

Gus Gus

You can use the v-cloak directive, which will hide the vue instance until the compilation finishes