2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-15 02:02:24 +03:00

chore: add docs site

This commit is contained in:
pimlie
2019-03-10 21:58:13 +01:00
parent 3db250dfea
commit 5aa94ceea3
17 changed files with 6173 additions and 92 deletions
+12
View File
@@ -0,0 +1,12 @@
# How to prevent update on page load
Add the `data-vue-meta-server-rendered` attribute to the `<html>` tag on the server-side:
```html
<html data-vue-meta-server-rendered>
...
```
`vue-meta` will check for this attribute whenever it attempts to update the DOM - if it exists, `vue-meta` will just remove it and perform no updates. If it does not exist, `vue-meta` will perform updates as usual.
While this may seem verbose, it _is_ intentional. Having `vue-meta` handle this for you automatically would limit interoperability with other server-side programming languages. If you use PHP to power your server, for example, you might also have meta info handled on the server already and want to prevent this extraneous update.