antoniputra antoniputra - 1 year ago 206
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download