Troubleshooting MathJax.js Load Error on PF Website

  • Context: LaTeX 
  • Thread starter Thread starter KenJackson
  • Start date Start date
  • Tags Tags
    latex mathjax
Click For Summary

Discussion Overview

The discussion revolves around a loading error related to MathJax.js on the Physics Forums website, specifically addressing issues with LaTeX rendering. Participants explore the problem of the script not loading for some users while functioning for others.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant reports that the MathJax.js script fails to load, resulting in LaTeX not being rendered, and questions whether others are experiencing the same issue.
  • Several participants respond that the script is loading correctly for them, and LaTeX is rendering without issues.
  • Another participant suggests that the issue may be a temporary connection glitch and inquires about the status of the original poster's problem.
  • The original poster later reveals that the issue was due to a local configuration, specifically an entry in their /etc/hosts file that redirected the script's URL to 127.0.0.1, which they have since removed.

Areas of Agreement / Disagreement

Participants generally disagree on the nature of the problem, with some experiencing issues while others do not. The discussion reflects a mix of personal configurations affecting the loading of the script.

Contextual Notes

The discussion highlights the potential for local network configurations to impact access to external scripts, but does not resolve the broader implications of such issues for other users.

KenJackson
Messages
63
Reaction score
10
The web pages at PF include this script, which won't load, so latex is not rendered:
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js

When I try to fetch it with curl, I get an error:
"Failed to connect to cdnjs.cloudfare.com port 443: Connection refused"

Am I the only one? Is latex being rendered for anyone right now? If it is, why can you access the script, but I can't?
 
Physics news on Phys.org
The .js is loading fine for me, and Latex is rendering properly.
 
Works perfectly here.
 
Solved the problem. It was only on my PCs.

Over the years, I've been annoyed by various online ads, some that even seem to get through adblock plus. So I find the offending URL and define it to 127.0.0.1 in /etc/hosts. As it turned out, cdnjs.cloudflare.com must have hosted an annoying ad at some point because I had it in /etc/hosts.

I removed it and now everything is fine.
 
  • Like
Likes   Reactions: Greg Bernhardt and Tom.G

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 22 ·
Replies
22
Views
5K
  • · Replies 17 ·
Replies
17
Views
5K
Replies
2
Views
3K