See geo-ndxr/prototype-dev/connecting-pieces/index.html
Currently, WebR is imported inside of a function called recalculate, which is called when the submit button is clicked:
This is very slow. Instead, we should import WebR & load dependencies when the webpage loads. When the submit button is clicked, WebR should execute only the computations needed to re-compute the index.
See geo-ndxr/prototype-dev/connecting-pieces/index.html
Currently, WebR is imported inside of a function called recalculate, which is called when the submit button is clicked:
This is very slow. Instead, we should import WebR & load dependencies when the webpage loads. When the submit button is clicked, WebR should execute only the computations needed to re-compute the index.