antoniputra antoniputra - 12 days ago 5
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
Answer

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

Comments