handTrack.load(modelParams) will freeze the UI for 5..10s during loading time. This is unacceptable for a background task where responsiveness is more important than quick loading times. If it's just a network call it needs to be able to async, if it's a computationally expensive operation a web worker might be more useful. Both of these are hard to extend from the outside.
handTrack.load(modelParams)
will freeze the UI for 5..10s during loading time. This is unacceptable for a background task where responsiveness is more important than quick loading times. If it's just a network call it needs to be able toasync
, if it's a computationally expensive operation a web worker might be more useful. Both of these are hard to extend from the outside.