I set loadingStrategy
to ‘on-user-interaction’ (although I think it’s sub-optimal, loading even on mouse-move, but that’s off-topic) - and I’d like to subscribe to ready event.
But the Snipcart.subscribe method does not exist when snipcart.js is not loaded yet.
In the best case I would even use the loadingStrategy: 'manual'
, but I’m not sure how to detect when it has loaded (after calling window.LoadSnipcart()
it is not immediately available)