Asset load progress library

Hey all, Work is using a modified version of this https://github.com/Jam3/preloader to preload assets on our interactive sites. Is there anything more modern out there that we can use? Any suggestions? Basically I want the ability to detect the loading progress of all asset types and set state accordingly.
GitHub
GitHub - Jam3/preloader: A library for loading common web assets
A library for loading common web assets. Contribute to Jam3/preloader development by creating an account on GitHub.
2 Replies
benten
bentenOP3y ago
Ideally I want to have the assets preloaded in the head. My assumption is that if I start a fetch or XMLHTTP request on an asset thats already being preloaded the browser dedupes the request (i.e. reads from cache). That might be an incorrect assumption though
robotkutya
robotkutya3y ago
Like... are you trying to do some sort of caching for all asset loading? Isn't that what CDNs are for...? Plus the browser's cache. If it's about third party scripts, then there is https://partytown.builder.io/
Partytown
Introduction - Partytown
Partytown - Run third-party scripts from a web worker
Want results from more Discord servers?
Add your server