Preload Ionic for PWA purposes

Hi.
I’m developing Web App, which should be working fast. I’m picked up Svelte, Ionic, and Vite. But, I find out when the screen has been changed to another view, the browser initiates lazy load some stuff. How I can prevent this behavior by preloading need stuff, like components and icons? I will be transforming my app to PWA next step, so it’s will require to precache all resources except API requests.
I’m not so long with frontend, therefore appreciate any support, cause few messing in my head about the stack of Svelte+Ionic+Vite+yarn together.