Page MenuHomePhabricator

Consider to expose json or complete endpoint to restbase
Closed, DeclinedPublic

Description

Since this was not really clear in our discussions on IRC etc.
In https://gerrit.wikimedia.org/r/#/c/245478/ the Math extension performs at least two (but probably three) request to restbase for each formulae.
The first request gets the MathML output.
The second request gets the SVG, to extract the size information.
The third request is sent by the users browser to fetch the SVG image... however FF might be smart enough to figure out that the image will never be shown and does not fetch it.
I think the performance would be increased if requests one and two would be combined.
If that's not the case please close this issue without further discussion.

Event Timeline

Physikerwelt assigned this task to mobrovac.
Physikerwelt raised the priority of this task from to Medium.
Physikerwelt updated the task description. (Show Details)
Physikerwelt added projects: Mathoid, RESTBase.
Physikerwelt added subscribers: Physikerwelt, GWicke.

The first two requests happen inside the WMF infrastructure, so the increase in performance wouldn't be noticeable to users. The problem with collapsing them is that these two requests do not deliver compatible information - MathML with SVG image size information.