https://bugzilla.wikimedia.org/show_bug.cgi?id=65988

Krinkle <krinklem...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |krinklem...@gmail.com

--- Comment #4 from Krinkle <krinklem...@gmail.com> ---
(Nemo asked me for input. Thanks.)

One solution that might be possible is to indeed lazyload it when the input
field is first used (based on keyup or value change, not focus).

Then, using a callback, once jquery.ime is loaded, read the value entered so
far and pass that to jquery.ime immediately (e.g. fast-forward).

To optimise for user experience, you could bind an on('focus') handler still
(for browsers not having autofocus, or for when the user focused something else
and is going back to the search box, at that point you can anticipate user
input and fetch it right away). But you'll have to be careful to bind after
autofocus has fired.

Looks like browsers are inconsistent in when they fire autofocus, so binding
after it is even harder. Maybe try something hacky like listening for 'focus'
only once (using jQuery#one), then see if element.autofocus is set. If so,
remove the attribute and bind the event again.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to