uwescience / WaterReuseDSSG2024

Drivers-Based Water Reuse Potential project for DSSG summer 2024
https://uwescience.github.io/WaterReuseDSSG2024/
Apache License 2.0
1 stars 1 forks source link

bug: move webR import to top of HTML #272

Closed voglerdaniel closed 3 months ago

voglerdaniel commented 3 months ago

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:

image

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.