I would have expected that Dash only loads the js chunks that it actually needs. However, it seems that it loads all chunks for a library, even the ones you don’t use. Consider this small example app,
from dash import Dash, html
app = Dash()
app.layout = html.Div(["Hello world!"])
if __name__ == '__main__':
app.run_server()
It uses only the html module, but the js chunk for e.g. for the dcc module is loaded anyhow,
which seems very ineffective. Is this by design? Or is it a bug? @chriddyp @alexcjohnson
3 posts - 2 participants






