Math Loading Speedups

10 views
Skip to first unread message

Andrew Scholer

unread,
May 17, 2026, 12:21:28 PM (14 days ago) May 17
to prete...@googlegroups.com
Some questions around speeding up the rendering of math heavy pages motivated by a sample Jeremy created:
https://sites.ualberta.ca/~jsylvest/pretext-dev/delayed-knowl/exercises-vectors.html

1) Is there a reason we don't have MathJax set to lazy load?

In addition to reducing the time until MathJax is done with its initial processing, it would help with linking to content in the middle of a page. Try this link and note how the content jumps around:
https://sites.ualberta.ca/~jsylvest/pretext-dev/delayed-knowl/exercises-vectors.html#exercisegroup-vectors-parallel-to-line
The effect is worse if you are on a slow device or simulate one in the dev tools:
image.png


2) Has anyone ever experimented with prerendering math during build?
It seems like page loads could be significantly snappier if the known math content was rendered as part of building pages. That would be a much bigger lift than #1, but seems like it could make a significant difference in time to final display and responsiveness during that time.


Rob Beezer

unread,
May 17, 2026, 1:08:05 PM (14 days ago) May 17
to prete...@googlegroups.com
On 5/17/26 09:20, Andrew Scholer wrote:
> 1) Is there a reason we don't have MathJax set to lazy load?

No. I did the bare minimum for the upgrade, and got little feedback during the
trial period.

Happy to iterate over performance features, even if we go backwards
inadvertently. Just so long as content does not get wrecked.

Rob
Reply all
Reply to author
Forward
0 new messages