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

Workaround required for atrocious performance of textarea fields in Chrome #26

Closed
bobbingwide opened this issue Mar 24, 2016 · 1 comment
Assignees
Milestone

Comments

@bobbingwide
Copy link
Owner

While developing oik-requests I started using textarea fields to store post meta data for information about files loaded, hooks invoked and queries performed. These fields can run to many many lines.
I noticed that in the WordPress edit page, pasting large amounts of data into the textarea fields brought Chrome to a standstill.

Google searches came up with the actual problem https://bugs.chromium.org/p/chromium/issues/detail?id=109587
but they didn't explain the easy workaround, which is to disable spell checking.
See http://stackoverflow.com/questions/254712/disable-spell-checking-on-html-textfields

So now we need a way to add the "spellcheck=false" parameter to selected textarea fields.
The lowest level API that might need changing is iarea(), though we could get away with changing the logic for displaying a sctextarea field using new logic.

As an aside

There are other things that might be good to have for input fields:

<input type="text" placeholder="My Field" name="myfield"
    autocapitalize="off" autocorrect="off" autocomplete="off" />
@bobbingwide bobbingwide self-assigned this Mar 24, 2016
@bobbingwide bobbingwide added this to the oik v3.0.0 milestone Mar 24, 2016
@bobbingwide
Copy link
Owner Author

The solution involves a change to oik-fields which will set fields of type 'sctextarea' to spellcheck="false" by default.

Note: The sc prefix is for "shortcode" not "spellcheck" nor "Slow/speedy Chrome".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant