numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
205 stars 120 forks source link

Default theme: auto resize on matrix inputs is v slow with large matrices #896

Closed christianp closed 2 years ago

christianp commented 2 years ago

I have a question with three 12×12 matrix inputs. It's very slow to load, or to reveal answers. It seems that the layout engine spends ages computing the sizes of each of the inputs as the auto-resize themselves.

Maybe matrix inputs shouldn't auto-size, or we should make a guess without measuring in the DOM. (I think MathJax does a lot of contortions and dead reckoning to avoid this, too)