[Bug 65988] Don't load ULS IME on autofocused search bar
https://bugzilla.wikimedia.org/show_bug.cgi?id=65988 Amir E. Aharoni changed: What|Removed |Added Priority|Unprioritized |Normal -- 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
[Bug 65988] Don't load ULS IME on autofocused search bar
https://bugzilla.wikimedia.org/show_bug.cgi?id=65988 --- Comment #6 from Nemo --- It was pointed out that the same behaviour is not immediately reproducible on other wikis like fr.wiki. To reproduce, one indeed needs to add something like it.wiki's JS // Autofocus nel campo "ricerca" della homepage $(function() { if (mw.config.get('wgIsMainPage') && mw.config.get('wgAction') === 'view') $('#searchInput').focus(); }); (of which as a workaround I'm asking removal https://it.wikipedia.org/w/index.php?title=Discussioni_MediaWiki%3ACommon.js&diff=66456352&oldid=66261344 ). -- 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
[Bug 65988] Don't load ULS IME on autofocused search bar
https://bugzilla.wikimedia.org/show_bug.cgi?id=65988 Nemo changed: What|Removed |Added Blocks||55683 --- Comment #5 from Nemo --- Thanks Krinkle, that looks actionable. Amir, can you please give an estimate of when this is going to be worked on? If it's not going to be within this month I'll have to work for local workarounds. -- 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
[Bug 65988] Don't load ULS IME on autofocused search bar
https://bugzilla.wikimedia.org/show_bug.cgi?id=65988 Krinkle changed: What|Removed |Added CC||krinklem...@gmail.com --- Comment #4 from Krinkle --- (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
[Bug 65988] Don't load ULS IME on autofocused search bar
https://bugzilla.wikimedia.org/show_bug.cgi?id=65988 --- Comment #3 from Santhosh Thottingal --- (In reply to Nemo from comment #0) > IV. Expected: ULS resources should be lazy loaded. Until I type alphanumeric > characters in the (autofocused) search bar, it can't be assumed I'm going to > use it. A problem with lazyloading IME after user types is, the input key transliteration starts/happens only after user types several characters -when the IME is lazyloaded. That make first few characters without IME and then with IME. -- 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
[Bug 65988] Don't load ULS IME on autofocused search bar
https://bugzilla.wikimedia.org/show_bug.cgi?id=65988 --- Comment #2 from Nemo --- Thanks for looking into it so swiftly! It's indeed tricky and I'm not as competent as to suggest an implementation: as a user however, personally I wouldn't be bothered by the IME being loaded only after my first keystroke. Pau, do we know from testing what the user expectations are? A data-based decision could perhaps be made by checking whether ime-disable events are proportionally more frequent than ime-enable events on "normal" view action (to non-special pages?) compared to action=edit and whatever? No idea if that helps. -- 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
[Bug 65988] Don't load ULS IME on autofocused search bar
https://bugzilla.wikimedia.org/show_bug.cgi?id=65988 --- Comment #1 from Niklas Laxström --- Leaving aside whether adding autofocus on a main page is a good thing or not for a moment, in my testing there doesn't seem to be a way to differentiate between manual focus and autofocus. Searching the internet didn't help either. -- 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