Within my Vue.js application, there is an animation that appears on a specific page. However, each time I visit that page, the assets for the animation are re-downloaded from scratch. Although the app does get destroyed
when leaving the page, using v-show
as opposed to v-if
would prevent destruction, leading to other issues for my particular use case. This causes the animation to load as soon as the main page loads, which is not ideal.
Is there a JavaScript solution to address this issue?
Additionally, the application functions as a PWA
with a functioning service-worker
. Is there a way to leverage this setup to resolve the problem?