Add a loading indicator while the widget is loading. Using the onTrack callback to preload widget and check for errors.