-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Input slow and high CPU on large forms #24670
Comments
In which OS/browser do you see this happening? related: as most browsers now do the 300ms optimization for |
Is that a known browser bug? |
Above issue is affecting us as well. We have some legacy administrative forms that can contain up to 5000 divs, each containing an input or select and a button element. Loading this page brings Chrome to a crawl. A full pageload in Firefox take approximately 6 seconds, in Chrome it takes approximately 50s. Commenting out the entire rule solved the problem, similar to what @eeaquino noted, but in our case we have input fields and sometimes select fields. The pageload behavior for Chrome is pretty interesting. When the above rule is in place the 'Content Download' portion of the waterfall is approximately 45s. However when the rule is commented out that drops to 241ms. I did not know that CSS rules could affect document transport? This behavior can only be seen on Chrome. Most notably I don't see it on Safari. My guess is most people don't see this issue because they have shorter documents - but the performance contrast is... stark. See attached screenshots. Waterfall with the rule in place: Waterfall with the rule removed: Please let me know if you have any additional questions relating to this. We are happy to help however we can. |
Please someone report this to the Chromium team: https://crbug.com/ |
we'd need a reproducible test case. i just tested a document with 5000 |
https://codepen.io/anon/pen/aEqReQ input must be type text, or some of the other types that have the css rule applied. |
filed https://bugs.chromium.org/p/chromium/issues/detail?id=800522 /cc @mustaqahmed @RByers @NavidZ in the meantime, i think we can consider removing the |
@patrickhlauke Spent some time working on a reproduction. Part of the problem appears to be that we start returning a response from our application server before all of the content is generated. As a result the timing seen is quite different from what you'd see with a static document, even a static document that exactly matches the final content generated by the app server. I'm thinking that the touch-action property is very sensitive to response timing, iteratively executing a repaint/reflow every Xms. I've been using the Chrome profiler, but for this particular set of circumstances the tool never finishes. Every 400ms "update layer tree" executes, seemingly forever. Pretty interesting. |
@eeaquino Thank you for your sample. This seems to produce the identical result I'm seeing with my response. |
Due to a severe performance bug in Chrome (see https://bugs.chromium.org/p/chromium/issues/detail?id=800522) and due to the fact that (with the exception of IE/Edge on Windows desktop with touchscreen) all modern browsers now optimize the click delay away anyway, this optimization is not needed. Closes #24670
When having a large table with several inputs there is a noticeable lag in the input box. Also CPU usage stays at 12.5% table is about 1500 rows.
Commenting out in line 250 bootstrap.css stopped the issue :
The text was updated successfully, but these errors were encountered: