see a lot of animated h5 single page display pages, which read the bar first or show the loading percentage when entering the page. Then, after the resource is loaded, the page is actually displayed.
this kind of page is usually a single page with a large number of animations and pictures, switching between scenes like swiper, and each scene has some animation or audio.
how is this preloading function realized and how does it work?