webdash icon indicating copy to clipboard operation
webdash copied to clipboard

Load all `async-{xyz}` asynchronously instead of upfront during the boot process

Open ibdafna opened this issue 4 years ago • 0 comments

Plotly saves on memory by lazy-loading dependencies its apps require. These generally tend to come from the dash-core-components distribution, and are retrieved using GET requests which Flask serves. WebDash currently loads all of them upfront during the boot process.

https://github.com/ibdafna/webdash/blob/985798820bd65fcc776de9a23e768d59ef279d40/src/webdash.ts#L123-L140

It would probably make more sense to stay true to the original intention and load these asynchronously whenever an app that depends on them, requests them.

ibdafna avatar May 12 '21 02:05 ibdafna