D
D
Dmitry2019-09-27 10:20:50
Vue.js
Dmitry, 2019-09-27 10:20:50

How to properly connect vuejs?

There is a website. In it, I connect vue with a regular tag (it doesn’t matter in the head or at the end of the body):

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>

But there is a problem - when the page is loaded, the user sees {{news.title}}and only after 2 seconds the normal text is loaded. Moreover, this is not even Ajax, but ordinary data inside data.
This is quite logical, because in order to execute the {{news.title}} line, vue must first be loaded.
But how can this be avoided without tweaking the build system? Is there another way, easier?
I didn't find the answer in the documentation. There even this problem is not described.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nvdfxx, 2019-09-27
@dmitry-l

v-cloak

A
Alex-1917, 2019-09-28
@alex-1917

v-cloak PLUS this html i.e. absolutely clean bare container. 80% of the so-called videos and not only guides offer something to shove there, all this will be ruthlessly displayed until the Chinese part is initialized.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question