Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

71%
+3 −0
Q&A MathJax rerenders on movement instead of on change

I've noticed something when using MathJax while preparing/editing a post. Each time a change is made to the raw text, the preview rerenders accordingly. This is the behaviour I expect, which ensure...

0 answers  ·  posted 2y ago by trichoplax‭  ·  edited 10mo ago by meta user‭

#4: Post edited by user avatar meta user‭ · 2024-02-19T14:22:36Z (10 months ago)
grammar
MathJax rerenders on movement instead of on change
  • I've noticed something when using MathJax during preparing/editing a post. Each time a change is made to the raw text, the preview rerenders accordingly. This is the behaviour I expect, which ensures the preview is always up to date. However, it also rerenders each time I move the text cursor, even if there is no change to the raw text input. For example, if I press one of the left/right/up/down cursor arrows, the preview reverts to raw MathJax markup for a moment, and then renders again. Also if the raw text box doesn't have focus and I give it focus by clicking into it with the mouse, the same momentary reversion to raw markup occurs.
  • This doesn't stop me drafting posts, it's just an unexpected extra movement in the page. Would it be straightforward to configure this to only rerender on change, rather than on change of focus and text cursor
  • movement, or is this something related to the third party code doing the rendering?
  • I've noticed something when using MathJax while preparing/editing a post. Each time a change is made to the raw text, the preview rerenders accordingly. This is the behaviour I expect, which ensures the preview is always up to date. However, it also rerenders each time I move the text cursor, even if there is no change to the raw text input. For example, if I press one of the left/right/up/down cursor arrows, the preview reverts to raw MathJax markup for a moment and then renders again. Also if the raw text box doesn't have focus and I give it focus by clicking into it with the mouse, the same momentary reversion to raw markup occurs.
  • This doesn't stop me from drafting posts, it's just an unexpected extra movement in the page. Would it be straightforward to configure this to only rerender on change, rather than on change of focus and text cursor
  • movement, or is this something related to the third-party code doing the rendering?
#3: Post edited by user avatar Monica Cellio‭ · 2022-11-25T04:09:36Z (about 2 years ago)
#2: Post edited by user avatar Monica Cellio‭ · 2022-10-09T18:21:48Z (about 2 years ago)
fix merged but not yet deployed
#1: Initial revision by user avatar trichoplax‭ · 2022-10-02T22:49:00Z (about 2 years ago)
MathJax rerenders on movement instead of on change
I've noticed something when using MathJax during preparing/editing a post. Each time a change is made to the raw text, the preview rerenders accordingly. This is the behaviour I expect, which ensures the preview is always up to date. However, it also rerenders each time I move the text cursor, even if there is no change to the raw text input. For example, if I press one of the left/right/up/down cursor arrows, the preview reverts to raw MathJax markup for a moment, and then renders again. Also if the raw text box doesn't have focus and I give it focus by clicking into it with the mouse, the same momentary reversion to raw markup occurs.

This doesn't stop me drafting posts, it's just an unexpected extra movement in the page. Would it be straightforward to configure this to only rerender on change, rather than on change of focus and text cursor
movement, or is this something related to the third party code doing the rendering?