I´m trying to hide my login template until everything is loaded. Right now what is happening is that when I enter my site, the template loads, then my fonts, etc. I don´t want to show anything to the user until I can show my page with all fonts, images, everything.
I have already tried using v-show, v-if, but it didn´t work. I have also use mounted
with this.$nextTick = false
, but no success.
Busy is the variable I want to use to control if the page can be show or not.
This is my div:
<div class="background kt-grid kt-grid--ver kt-grid--root kt-page" v-if="!busy">
And this is my script/export default:
mounted: function(){
this.$nextTick( function() {
this.busy = false;
})
}
I expect to see all contents inside that div only after the page fully loads.
Thanks in advance