chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Chainlit app is fetching ~4MB file initially slowing down initial load time

Open samippl1 opened this issue 3 months ago • 4 comments
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

  1. Create a basic chainlit app in python.
  2. Then run the server either locally/on cloud and examine the network tab.
  3. Check for a JS file with size of ~3700 kB
  4. 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

Image

samippl1 avatar Aug 01 '25 06:08 samippl1