Page MenuHomePhabricator

Add a notice on load for users of slower computers advising them to use source mode instead of VisualEditor
Open, LowPublic8 Estimated Story PointsFeature

Description

There should be an edit notice whenever someone tries to use VE which says something like "Slower computers or users trying to use older markup should try editing in the older Editor." and link to the older editor. Otherwise we're directly cutting off plenty of editors who can't figure it out, and would have relatively slow internet.

P.S. My internet is slow enough to not give a satisfactory VE experience, and I consider myself to have decent Indian speed internets


Version: unspecified
Severity: enhancement

Details

Reference
bz50518

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:57 AM
bzimport set Reference to bz50518.

So we already have the beta welcome dialog, I think we should add something like "Users of slow computers should consider doing this." after the "You can keep using the wikitext editor by clicking the "Edit source" tab instead – unsaved changes will be lost."

The plan is to get rid of the beta welcome dialog relatively soon (in the next few months), however…

Timo thinks we can measure performance and display an edit notice if it's slow.

We discussed how to do this in #mediawiki-visualeditor a bit. Some quotes:

<Krinkle> when a certain amount of time has passed (potentially taking the document complexity in account as well, avoid measuring network by accident), set a boolean flag, which in getEditnotices() will make it include/exclude that notice accordingly
<Krenair> I'm wondering what operation we should measure and what timing shows a reasonable speed
<Krinkle> Krenair: one or more of the actions in the setup of the surface (parsing of html into data DOM, conversion to linenar data model, building of CE etc.)

<Krenair> but those operations will all take different times depending on document length/complexity :/
<Krinkle> Krenair: Yes, but avoiding I mean, taking into account
<Krinkle> e.g. not timespend > maxtime, but something like timespent/doc-size > maxratio
<Krinkle> RoanKattouw might have some math ideas that are more useful
<Krinkle> However, we should probably do some research and see how slow the 'too slow' browsers really are.
<Krinkle> We might be able to measure it with a very simple operation at a small scale (e.g. create an iframe and attach it, just a random unused iframe), that that one operation is measurable enough, we can do it that way.
<Krenair> Hm. This is getting increasingly out of the 'MediaWiki integration' part
<Krinkle> The function calls are all in viewpagetarget in setupSurface
<Krinkle> though ideally this would probably be in ve-core, seems a useful statistis

Roan, could you comment on this when you have time please?

Change 135046 had a related patch set uploaded by Alex Monk:
Attempt to detect slow machines and show an edit notice

https://gerrit.wikimedia.org/r/135046

Change 135046 abandoned by Alex Monk:
Attempt to detect slow machines and show an edit notice

Reason:
This is seemingly impossible for me to get right, and just not worth the effort

https://gerrit.wikimedia.org/r/135046

Jdforrester-WMF renamed this task from VisualEditor: Add an edit notice for users of slower computers advising them to use source mode to Add a notice on load for users of slower computers advising them to use source mode instead of VisualEditor.Dec 2 2014, 10:00 PM
Jdforrester-WMF set Security to None.
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM
Aklapper removed a subscriber: TrevorParscal.