I recently decided to turn my app into a multi page app which consists currently of only two pages.
I have the site hosted on pythonanywhere and it has the following folder structure:
- app.py
-navbar.py
- pages
|-- page1.py
|-- page2.py
- assets
|-- style.css
The app is a dataframe viewer which usually consists of ~85000 rows
Using callbacks i added dropdown and rangeslider components to filter the dataframe.
When i was using a flat project structure before with only page being app.py the app was very responsive and fast. Now when i load the site it almost flickers and almost fully reloads on every callback firing. I’m using the “use_pages” function.
Is there any way to prevent this or speed it up. The callback is mainly the culprit here.
Or should i switch to something like AG Grid and use it’s native filtering options