Page MenuHomePhabricator

Debug mode is too slow to be used with VisualEditor (hundreds of web requests)
Closed, ResolvedPublic

Description

It isn't possible to use resource loader to load VE in debug mode - this takes just too long with hundreds of web requests.
It should be possible to easily debug VE without need of some kind of JS beautifier/local installation of mediawiki+parsoid.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I wouldn't say it's unusable. On my local machine debug mode loads in ~4s. If resource loader had concatenate with a source map that would be better though...

On WMF wikis (enwiki) with localStorage.clear() and Ctrl+R it takes ~950 requests ~30 seconds (in Chrome), and it is too awful to publish here the similar numbers for firefox

Jdforrester-WMF lowered the priority of this task from Low to Lowest.Mar 24 2016, 2:59 PM
Jdforrester-WMF subscribed.

This is way below "lowest", but as it's being used structurally I'll leave it open rather than decline.

Krinkle renamed this task from debug=1 is too slow to be used with VE and results in hundreds of web requests to Debug mode is too slow to be used with VisualEditor (hundreds of web requests).Aug 5 2016, 1:44 AM

I'm very satisfied with the following simple solution on a test wiki:
just setting the supportsURLLoading() function to return false on ReasourceLoaderFileModule.

It would be great if:

  1. either it would be possible to control it from URL parameter
  2. explicitly set debugRaw=false on VE
Krinkle changed the task status from Open to Stalled.Apr 2 2020, 5:10 PM
Krinkle edited projects, added Performance-Team (Radar); removed Performance-Team.
Krinkle moved this task from Backlog to Confirmed Problem on the MediaWiki-ResourceLoader board.
Krinkle moved this task from Limbo to Watching on the Performance-Team (Radar) board.
Krinkle claimed this task.

There is more work to be done under the main debug v2 subtask, but for the purposes of loading VE I consider this resolved.