Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copilot: index-DnjoDoLU.js takes 10 seconds to load #1886

Open
OwaisNoor000 opened this issue Feb 11, 2025 · 0 comments
Open

Copilot: index-DnjoDoLU.js takes 10 seconds to load #1886

OwaisNoor000 opened this issue Feb 11, 2025 · 0 comments
Labels
bug Something isn't working needs-triage

Comments

@OwaisNoor000
Copy link

Describe the bug
I have embedded a Copilot widget on my site and it takes around 7-10 seconds to show up. The file taking the most time to load is a index-DnjoDoLU.js which is around 1.7Mbs and appears to be loaded in chunks.

To Reproduce
Steps to reproduce the behavior:

  1. I have uploaded my chainlit app on a 2GB AWS lightsail webserver. The default API is used (chainlit run app.py)
  2. I load my webpage while inspecting the network tab in browser tools
  3. index-DnjoDoLU.js is loaded after 7-10 seconds after which it initiates multiple web sockets.

Expected behavior
I would expect my chainlit copilot to load in atleast 4 seconds as this is a production environment, 7-10 seconds is too much.

Screenshots

Image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Brave

Additional context
I did try researching about the client server process for chainlit but there are not many resources to be found.
I really do not know whether it is a problem with my server or chainlit, I have not found anyone facing the same problem.

Thanks!

@dosubot dosubot bot added the bug Something isn't working label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant