chainlit
chainlit copied to clipboard
Chainlit app is fetching ~4MB file initially slowing down initial load time
trafficstars
Describe the bug Chainlit app seems to fetch a 3600 kB file on page load probably the frontend code, slowing down the webpage loading time massively.
To Reproduce
- Create a basic chainlit app in python.
- Then run the server either locally/on cloud and examine the network tab.
- Check for a JS file with size of ~3700 kB
- The loading time of that file makes a noticeable difference for deployed applications, on first load when it is not cached. Test in incognito mode with cache disabled to recreate scenario for new users.
Screenshots