Hello,
I have a custom widget which, when loading correctly, appears like this:

This works 90% of the time in the experience builder, but when viewing the published experience it loads around 30% of the time.
It seems to be loading before the data and so fails and shows this:

Refreshing until it loads solves this.
Would it be possible to add some sort of delay at the start which would give time for other resources to load or is there another underlying issue?
Thanks for any help.