From the documentation:
You can only call .load on page load, or reload (refresh). If you modify the .load method between page loads, it doesn’t have any effect until the page is reloaded.
I've been working on a Figma plugin. My plugin code runs in an iframe provided by the Figma web app. That iframe doesn't run any of my code until after its page has already loaded.
Segment hasn't received any tracking events which I generate in the Figma plugin. I think this is because my .load call is being queued until the next page refresh, and any .track calls are being queued until at least one .load call completes.
Is there a workaround for this problem?