stsquad/emacs_chrome — Issue #43: Really slow on Google Mail with recent changes in findTextAreas()
Author: avar
Created: 2011-10-22 22:11:02+00:00
State: open

I recently updated emacs_chrome and found that GMail became *really*
slow, as in opening it takes ~20 seconds more, just scrolling up and
down takes 5 seconds instead of being instantaneous, when start typing
an address to send mail to the auto-complete takes several seconds
instead of showing up right away.

I tracked this down to recent changes in findTextAreas(), when I get
rid of this code (which I seemingly don't need, as I can edit normal
text forms and forms on GMail which is all I use anyway) things just
start working normally again:

diff --git a/textareas.js b/textareas.js
index c9bdf21..d784620 100644
--- a/textareas.js
+++ b/textareas.js
@@ -292,20 +292,6 @@ function findTextAreas() {
tagTextArea(texts[i]);
}

- // lets see if we can find any contenteditable stuff
- var editable = $('*').find("div[contenteditable='true']");
- for (var i=0; i