dalliance icon indicating copy to clipboard operation
dalliance copied to clipboard

Add "trackIdle" and "allTracksIdle" callbacks

Open danvk opened this issue 9 years ago • 2 comments

It would be nice to get some kind of notification when a track has finished loading, regardless of whether it's the initial load or triggered by a call to browser.setLocation.

danvk avatar Oct 28 '14 19:10 danvk

Good idea.

Is there a specific use case you've got in mind for the single-track version?

The general case that comes to mind is an event containing a map of track->fetching-status which fires whenever some statuses have changed -- would that work for you?

dasmoth avatar Oct 28 '14 20:10 dasmoth

Yes, that would work for me.

The use case for an individual track version would be if I wanted to log performance stats on individual loads, or re-style some elements when a track finishes loading.

danvk avatar Oct 28 '14 20:10 danvk