When it comes to loading components on a webpage, jquery has the options of $( document ).ready()
and onload
. But in Vue, how can we achieve the same effect? For example, when a user clicks our page, how can we display a spinner until all contents are loaded before making the display none?
Another question is what is a good way to mount() the data before rendering it?