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

--- Comment #6 from Frédéric Wang <fred.w...@free.fr> ---
(In reply to comment #5)
> If we can serve the same HTML to all anons, but use a cookie (which the
> server
> doesn't even need to look at) to determine what JS runs (MathJax vs. no
> MathJax), it shouldn't cause Squid or Varnish fragmentation.
> 
> This should be possible, since the math images currently served to all anons
> already contain TeX as an alt attribute.

To follow-up on this, my experimental commit

https://gerrit.wikimedia.org/r/#/c/78466/

generates the following HTML code:

<span class="MathJax_Preview"><img ...></span><script
type="math/tex">...</script> 

so this can be used for both the MathJax and no-MathJax modes:

- In the no-MathJax mode, the image will be rendered and the <script> hidden.
- In the MathJax mode, the image will be rendered as a preview until MathJax
replaces it by its HTML output.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to