D
D
dk-web2019-06-14 21:55:27
Vue.js
dk-web, 2019-06-14 21:55:27

How critical is the presence of window.__NUXT in the source code with all the data?

I noticed that with ssr I have such a "trouble".
Script with all data from store and asyncData. Does it affect anything? with t.z. development/security/etc.

window.__NUXT__=(function(a,b,c,d,e,f,g,h,i,j,k){return {layout:"admin",data:[{}],error:c,state:{auth:{strategy:"local",loggedIn:f,user:{id:b,name:"Dk",email:"[email protected]",active:b,activation_token:"",created_at:d,updated_at:d,deleted_at:c}},crud:{items:{images:[{id:b,caption:"fsfd",url:"nuxt_images\u002Fz8ROaG4pTIcofjrb6XysssyDbFckHi5FOePSiIOD.png",created_at:e,updated_at:e},{id:2,caption:"dsadsa",url:"nuxt_images\u002Fq283NHQNugghH7t7CZNtSv7KcvnEyRQcVuvko8V1.jpeg",created_at:k,updated_at:k},
etc. - the whole store is "rendered"
I look at sites on nuxt and everywhere the same trouble ... styles and __nuxt "objects" ..
view-source: https://toyflish.com/
well, I don’t like it at all (

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2019-06-14
@dk-web

This is not a problem, but SSR, how do you think it should still work if the data needs to be loaded before being sent to the client and embedded in the page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question