Right now, when the user clicks edit, we first load the ViewPageTarget code, then that code sends the Parsoid API request. This means that, on a cold cache, we have to wait for two network requests to complete before we have the HTML and can start setting up the editor. Instead, we should send the API request immediately and load the rest of the VE code in parallel.
Description
Details
Related Objects
Event Timeline
Change 193026 had a related patch set uploaded (by Jforrester):
[WIP] Factor out loading code into TargetLoader
https://gerrit.wikimedia.org/r/193026
Change 196584 had a related patch set uploaded (by Catrope):
Send Parsoid API request immediately when user clicks edit
https://gerrit.wikimedia.org/r/196584
Change 196584 merged by jenkins-bot:
Send Parsoid API request immediately when user clicks edit
https://gerrit.wikimedia.org/r/196584
Change 197414 had a related patch set uploaded (by Jforrester):
Send Parsoid API request immediately when user clicks edit
https://gerrit.wikimedia.org/r/197414
Change 197414 merged by jenkins-bot:
Send Parsoid API request immediately when user clicks edit
https://gerrit.wikimedia.org/r/197414