G
G
goodw842017-04-06 01:34:26
JavaScript
goodw84, 2017-04-06 01:34:26

VueJS synchronous connection?

1. I include VueJS in the head:
2. I include app.js at the end of the page.
When the page is loaded, {{message}} VueJS templates are first displayed, and then Vue processes them, replacing them with values, etc.
Browsers: Yandex.Browser and Google.Chrome
How to connect Vue so that it works before rendering the page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stopy, 2017-04-06
@goodw84

Vue will work anyway after rendering the dom tree. Alternatively, make the body display:none, and after the vue is loaded, make the stage visible. Otherwise, the unrendered result will still be visible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question