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

[Bug]: Extremely slow performance #1029

Open
bkutasi opened this issue Feb 23, 2024 · 3 comments
Open

[Bug]: Extremely slow performance #1029

bkutasi opened this issue Feb 23, 2024 · 3 comments
Labels
bug-report Something might not be working

Comments

@bkutasi
Copy link

bkutasi commented Feb 23, 2024

What happened?

On almost all pages, the load times are extremely long, the most time is spent on js/image loading and handling.
civitait_lighthouse.pdf
The page on DreamshaperXL loaded so slowly that lighthouse even gave up.
Here are some reports where you can view the details/blockers:
https://pagespeed.web.dev/analysis/https-civitai-com-models-112902-dreamshaper-xl/ygfh2u887c?form_factor=desktop
https://www.webpagetest.org/result/240223_AiDcCV_6MB/

I see two immediate improvements that could be made: use webp images with lower quality to save on traffic(the quality will be virtually the same on the small previews). The other is to consider not loading images on model pages unless the user scrolls down (or even place a button the "load images"), and only show a couple of modes during model search (~10-15).

The other problems are harder: the js eval time is very high for chunks/framework-19fa3454641a47fe.js. Somehow the size needs to be smaller and more efficient. Removing features depending on your stack could help.
image

Steps to reproduce the problem

Load any page on civitai.com.

What should have happened?

Less image loads, more optimized js would speed up page loading and enhance user experience.

What platforms do you use to access the site?

Windows, Linux, Android

What browsers do you use to access the site?

Google Chrome, Apple Safari, Microsoft Edge

Additional information, context and logs

No response

@bkutasi bkutasi added the bug-report Something might not be working label Feb 23, 2024
@kellbailey
Copy link

I am having similar issues. front page seems to load fine with no lag, I can also navigate to a model page and it is somewhat OK, but as a soon as I click on an image, from either the front page or from a model page, to view the image and it parameters, everything just slows to a crawl and takes forever to load or scroll.

I get the same results from my desktop, Surface and work laptop. Using Chrome, Brave or Edge browsers makes no difference.

@bkutasi
Copy link
Author

bkutasi commented Feb 24, 2024

I found a similar complaint on reddit : https://old.reddit.com/r/StableDiffusion/comments/1awjm4k/whats_up_with_one_civitai_tab_being_in_focus/

There are some comments but nothing too concrete. There was a comment about adblock+reload loop before, but it seems to be gone now. I tested the site with and without adblock and the performance was roughly the same, so I don't see an issue with that.

I am having similar issues. front page seems to load fine with no lag, I can also navigate to a model page and it is somewhat OK, but as a soon as I click on an image, from either the front page or from a model page, to view the image and it parameters, everything just slows to a crawl and takes forever to load or scroll.

I get the same results from my desktop, Surface and work laptop. Using Chrome, Brave or Edge browsers makes no difference.

I get the same experience for images as you the site self combusts, but adding to thatI cant load the page without hiccups. The images and the all the js takes a very long time to load and if i scroll during load or do anything at all everything is choppy. The only quick load experience i get if i disable javascript.

@abel1502
Copy link

abel1502 commented May 8, 2024

I have about a hundred tabs open simultaneously, and the site cannot load at all at this point. Edge just suggests the tabs are hung and should be killed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Something might not be working
Projects
None yet
Development

No branches or pull requests

3 participants