KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Summary Clearing the text in a form input is causing a long delay (multiple seconds) in Chrome. It seems that this is causing a reflow or recalculation of computed styles, but I'm not sure. Chrome's Profiler and Timeline were uninformative. What is causing the delay? How can I eliminate it? Is this an error in my code, or possibly a bug in Chrome? Example http://jsfiddle.net/jmilloy/dHFsQ/ To cause the delay, type into the input and then delete the text. The delay will occur when you delete the final character or if you select all and then delete. To eliminate the delay, use row4 instead of row1 , row2 , or row3 . Now you can clear the inputs without causing a delay. Notes The delay depends on n , the number of rows. It occurs in Chrome but not Firefox. It occurs for me in Linux (Ubuntu/Mint 11) and Windows 7, but not OSX. Can anyone confirm? I completely rewrote this question once I had a jsfiddle that exhibits the delay behavior, and rewrote again with a much more simple example.
Tags (comma-separated)
Save Edits
Cancel