Page MenuHomePhabricator

beta_opensearch.js - use json from the opensearch api instead of xml
Closed, ResolvedPublic

Description

Author: afeldman

Description:
Mobile's search preview should build relative urls from the much sparser json returned by the opensearch api, instead of using the xml response which contains a lot of extra data not useful for a type-ahead preview. The size difference is huge.

7672 bytes: http://en.wikipedia.org/w/api.php?action=opensearch&limit=15&namespace=0&format=xml&search=Ind

313 bytes: http://en.zero.wikipedia.org/w/api.php?action=opensearch&limit=15&namespace=0&format=json&search=Ind


Version: unspecified
Severity: normal

Details

Reference
bz40435

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:05 AM
bzimport set Reference to bz40435.
bzimport added a subscriber: Unknown Object (MLST).

I think the original reason was JSON view doesn't provide the link... (which I guess can be derived by prefixing with http://en.wikipedia.org/wiki/ or similar) and also better support for XML in older browsers will look into this.

Corrected product