Currently, I am developing a vuejs application that will incorporate video elements. To enhance user experience, we are interested in preloading these videos upon the initial loading of the web application.
I am considering using a listener like,
document.addEventListener("DOMContentLoaded", ready);
where the ready function triggers vue. While vue offers v-cloak
, applying it to every page is not ideal. We aim to avoid displaying a loading screen post-initial load. Any suggestions on an alternative solution, or is the aforementioned approach sufficient?