Website examples

23 views
Skip to first unread message

Rob Beezer

unread,
Nov 3, 2025, 5:20:09 PMNov 3
to prete...@googlegroups.com
Anybody else having trouble with the sample article in HTML at pretextbook.org?

Seems to be Firefox. Local and Chrome work fine. Maybe just the sample article
- the sample book seems fine (except for math in Exercise 5.10.1). Hangs up
while doing something with a message "Read cdn.jsdelivr.net". This could be
MathJax, Mermaid, DoeNet, or a bunch of other things. Not having much luck with
the Inspector (etc.) since it is unresponsive.

Any insights?

Andrew Scholer

unread,
Nov 3, 2025, 7:32:17 PMNov 3
to prete...@googlegroups.com
Yes, MathJax related.

The page is ending up with both:
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML" type="text/javascript"></script>

FF is finding 2.7.7
Chrome is finding 3

Finding 2.7.7 breaks all the code that expects to work with 3:
Uncaught TypeError: can't access property "components", MathJax._ is undefined

We've had similar issues before with FF finding a different version given the same code that tries to load both.

The real fix is to not try to load MathJax 2.7.7 and 3 at the same time. Not sure off the top of my head what might be loading the different versions.



--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/MTAwMDA0OC5iZWV6ZXI.1762208407%40pnsh.

Rob Beezer

unread,
Nov 4, 2025, 10:55:19 AMNov 4
to prete...@googlegroups.com
Thsanks, Andrew! I think that is from some STACK stuff, that maybe I left in by
mistake. I'll get it sorted in the AM.

(I'd noticed other less-severe MJ problems lately, too, so hopefully those go away.)

On 11/3/25 16:31, Andrew Scholer wrote:
> Yes, MathJax related.
>
> The page is ending up with both:
> <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js <https://
> cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js>"></script>
> <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?
> config=TeX-MML-AM_CHTML <https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/
> MathJax.js?config=TeX-MML-AM_CHTML>" type="text/javascript"></script>
>
> FF is finding 2.7.7
> Chrome is finding 3
>
> Finding 2.7.7 breaks all the code that expects to work with 3:
> Uncaught TypeError: can't access property "components", MathJax._ is undefined
>
> We've had similar issues before with FF finding a different version given the
> same code that tries to load both.
>
> The real fix is to not try to load MathJax 2.7.7 and 3 at the same time. Not
> sure off the top of my head what might be loading the different versions.
>
>
>
> On Mon, Nov 3, 2025 at 2:20 PM 'Rob Beezer' via PreTeXt development <pretext-
> d...@googlegroups.com <mailto:prete...@googlegroups.com>> wrote:
>
> Anybody else having trouble with the sample article in HTML at
> pretextbook.org <http://pretextbook.org>?
>
> Seems to be Firefox.  Local and Chrome work fine.  Maybe just the sample
> article
> - the sample book seems fine (except for math in Exercise 5.10.1).  Hangs up
> while doing something with a message "Read cdn.jsdelivr.net <http://
> cdn.jsdelivr.net>".  This could be
> MathJax, Mermaid, DoeNet, or a bunch of other things.  Not having much luck
> with
> the Inspector (etc.) since it is unresponsive.
>
> Any insights?
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pretext-dev...@googlegroups.com <mailto:pretext-
> dev%2Bunsu...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/
> MTAwMDA0OC5iZWV6ZXI.1762208407%40pnsh <https://groups.google.com/d/msgid/
> pretext-dev/MTAwMDA0OC5iZWV6ZXI.1762208407%40pnsh>.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-dev...@googlegroups.com <mailto:pretext-
> dev+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/
> CACm44N-HnDsjnCmvWDK7cjeqJruC7Rd_Rc5i2s5-p27dw5khKw%40mail.gmail.com <https://
> groups.google.com/d/msgid/pretext-dev/CACm44N-HnDsjnCmvWDK7cjeqJruC7Rd_Rc5i2s5-
> p27dw5khKw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Rob Beezer

unread,
Nov 4, 2025, 11:41:14 AMNov 4
to prete...@googlegroups.com
Thanks again, Andrew. I shoulda been able to sort that one out. ;-)

I have disabled loading MathJax 2 when a STACK question is present. So now
STACK questions will not render properly in HTML. So I have (again)
(temporarily) commented-out the one test question in the sample article.

A lot of other math was rendering fine, so I thought this was OK, I guess. But
commutative diagrams were not rendering, and our custom setup for knowlds in
display math were not working. And that was just locally - hosted on a server
it was much worse.

@Georg - we have to get this straightened out before we can make much progress
on anything else. You can assume MathJax 3 is loaded and available, and work
with that from within the STACK JS. And if it was done in a way that MathJax 4
was happy that would earn bonus points.

@Oscar - we might need a point-realease of the CLI? Except my website update
just now is still not right, so maybe I have more work to do.

Rob

Rob Beezer

unread,
Nov 5, 2025, 10:49:36 PMNov 5
to prete...@googlegroups.com
Based on some Drop-In discussion, I tried a few more things. Reviewed all the
HTML changes, going back months. Tried a local web server, so I could use "git
bisect", but it doesn't show the problem. Rebuilt a cleaner version for the
website (no stray old files).

It seems to only be the sample article. And only on Firefox. And it hangs so
bad, I can't even get the Inspector up. Only last thing I can think of is that
pretextbook.org recently moved and maybe the server is configured differently?

Anyway, I give up.

@Oscar - let's go ahead and do a CLI point upgrade - for several reasons, but
partly for all the messing around with display math. Thanks.

Oscar Levin

unread,
Nov 6, 2025, 11:08:08 AMNov 6
to PreTeXt development
CLI version 2.30.0 is now available.  I'll post on -announce soon.
Reply all
Reply to author
Forward
0 new messages