zooniverse / front-end-monorepo

A rebuild of the front-end for zooniverse.org
https://www.zooniverse.org
Apache License 2.0
104 stars 29 forks source link

Dynamically load in subject viewers / drawing tasks #681

Open rogerhutchings opened 5 years ago

rogerhutchings commented 5 years ago

Package

lib-classifier

Feature or Issue Description

As described in e.g. #366, we can dynamically load in subject viewers and drawing tools when actually required. This will need some additional store code to keep track of what's being loaded, and what has already been loaded.

goplayoutside3 commented 7 months ago

Related comment from #366

A couple of things that have arrived since this was first written: dynamic import in Node and in browsers. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import Suspense for lazy loading in React. https://reactjs.org/docs/code-splitting.html