Page MenuHomePhabricator

Send Parsoid API request immediately when user clicks edit
Closed, ResolvedPublic8 Estimated Story Points

Description

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.

Event Timeline

Catrope claimed this task.
Catrope raised the priority of this task from to Needs Triage.
Catrope updated the task description. (Show Details)
Catrope added subscribers: Catrope, ori.
Jdforrester-WMF triaged this task as Unbreak Now! priority.Feb 23 2015, 6:17 PM
Jdforrester-WMF moved this task from To Triage to Bug Fixes on the VisualEditor board.

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