How to execute a function after loading multiple libraries
Hey guys! It’s been a while but I need some advice on something.
I’m using Google Maps API + Finsweet CMS Load API (render all mode).
I’m loading 1000+ items from a CMS Collection then pass all that info into Google Maps API to place markers on a map.
My question is, if the Finsweet CMS loads & renders separately from the Google Maps, how can I make my function wait until both of them are fully loaded (plus wait for Finsweet CMS to render all 1000+ items) before running.
Currently I’ve got my code running after CMS load because I’m sure in most cases it’ll execute later than Maps but it feels a bit lazy tbh.
Also side question, is typescript really THAT good or should I stick to JS. I don’t have any problems with it but I might just be at the top of mount stupid again