Hello fellow meteorites,
I’ve been working on a meteor webapp that uses external media files (some large images and some .mp3 files). I’ve been using wavesurfer.js to load my .mp3 files and that’s been working great. However, it takes a few seconds to load the song (and in turn the waveform). What I want to do is preload some of these files – some of the larger images that I know are going to be needed and some of the .mp3 files.
I’m not convinced that I need a CDN for this app as the files aren’t significantly large – .mp3 files are just over 2mb
What is my best bet in preloading these assets? Has anyone used PreloadJS with Meteor yet? Is that something I should try out or are there better alternatives? Is there a way to run a ‘waitOn’ for media files (and show a spinner while loading)?
Thanks in advance guys!