[Vuejs]-Loading screen while all static assets are being loaded

0👍

You can use onreadystatechange method in your main App.vue file which will tell whether your DOM is ready or not

created(){
    document.onreadystatechange = () => { //To load the app only after all libraries are loaded
    if (document.readyState == "complete") { 
        this.loadApp = true;
    } 
   }

}

Leave a comment