Ok this is getting off-topic -- sorry -- but glad you like it :) Unfortunately, webworker isn't an option, we need the DOM. Using the PNG for size is an nice idea, but only saves one measurement, all others occur within the equation. IIRC, the basic problem is that browser are not reliable enough when it comes to em to pixel conversion; the only way to get those correctly is to layout&measure -- recursively, of course, building the equation bottom up. But you should talk to our devs if you need more information on MathJax internals.
Peter.
On Thu, Jul 25, 2013 at 7:40 AM, <<"tei''>>> oscar.vives@gmail.com wrote:
On 24 July 2013 21:12, Peter Krautzberger peter.krautzberger@mathjax.org wrote: ..
@Oscar that's the idea of bug 48036https://bugzilla.wikimedia.org/show_bug.cgi?id=48036 To test the user experience try this bookmarklethttps://gist.github.com/pkra/5500316
:-O
This is pretty. And if it still affect the browser (small freezes wen the user is scrolling) maybe the javascript can be moved to a iframe or a "web worker", so it don't run on the main javascript thread. About re-layouts, can't smart use of "min-width min-height" avoid that? you already have the size of the png as reference.
--
ℱin del ℳensaje.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l