https://bugzilla.wikimedia.org/show_bug.cgi?id=56509

--- Comment #8 from Niklas Laxström <[email protected]> ---
Please read bug 41489 for more information why we ended up with the current
solution.

Points to consider:
* In jquery.uls we cannot have dependencies on MediaWiki components.
* In jquery.uls (via jquery.i18n) we have a custom, json-based i18n file
format.
* Serving that file directly from bits is not possible because of cross-origin
restrictions.
* We are not going to change the file format from json to anything executable.
* We implemented API module which just servers the files as-is with some
caching.
* The API module does not have version based cache invalidation.
* Doing this via resource loader module would mean that we need to wrap or
reformat the json data into JavaScript on the fly and implement support for
that in jquery.i18n.

It's not obvious to me which action(s) should be taken here. Some options:
1) Delay the api call until ULS trigger is clicked. This needs some refactoring
moving the trigger related tooltip message*s* from json to i18n.php file.
2) Improve the caching of the api call
3) Use resource loader. I currently have no idea how this would look in
practice.

Hopefully we will have clarity on this on Monday. Have a great weekend.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to