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.
Description
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Krinkle | T130782 Debug mode is too slow to be used with VisualEditor (hundreds of web requests) | |||
Resolved | Krinkle | T85805 Introduce ResourceLoader debug mode v2 | |||
Duplicate | None | T64605 ResourceLoader: Debug mode should not execute scripts in the global scope | |||
Resolved | Krinkle | T50886 ResourceLoader: Remove obsolete closures from files | |||
Resolved | BUG REPORT | Krinkle | T255367 Global script is not loaded on debug=true |
Event Timeline
Comment Actions
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...
Comment Actions
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
Comment Actions
This is way below "lowest", but as it's being used structurally I'll leave it open rather than decline.
Comment Actions
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:
- either it would be possible to control it from URL parameter
- explicitly set debugRaw=false on VE
Comment Actions
There is more work to be done under the main debug v2 subtask, but for the purposes of loading VE I consider this resolved.