Closed
opened 1 year ago by btdmaster · 7 comments
commented 1 year ago

Math symbols do not work on this StackExchange math question or https://math.stackexchange.com in general. The website does not use CSP, but Cloudflare (the host for the library) does - is that a problem?

Error message in console: Loading failed for the <script> with source “https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_HTML-full”

As a side question, I noticed that quantserve is also being used on the website. Do you plan to implement CDNs used for tracking? That seems counterproductive if so. I'd humbly ask to keep away from that :)

Math symbols do not work on [this StackExchange math question](https://math.stackexchange.com/questions/3779667/if-x-sin-ay-sin-bz-sin-c-x2-sin2ay2-sin2bz2-sin-2c-0-show-x3-sin3ay) or https://math.stackexchange.com in general. The website does not use CSP, but Cloudflare (the host for the library) does - is that a problem? Error message in console: Loading failed for the <script> with source “https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_HTML-full” As a side question, I noticed that [quantserve](https://secure.quantserve.com/quant.js) is also being used on the website. Do you plan to implement CDNs used for tracking? That seems counterproductive if so. I'd humbly ask to keep away from that :)
Owner

This proposal has been made before (old repository on Gitlab.com | Issue #1).

Basically no problem, but the framework is too big (v2.7.5 = 25-75 MB).

This proposal has been made before ([old repository on Gitlab.com | Issue #1](https://gitlab.com/nobody42/localcdn/-/issues/1)). Basically no problem, but the framework is too big (v2.7.5 = 25-75 MB).
Poster

That makes sense! You can close the issue.

Regarding the second question, I presume that only useful CDNs are being added, correct?

That makes sense! You can close the issue. Regarding the second question, I presume that only useful CDNs are being added, correct?
Owner

Regarding the second question, I presume that only useful CDNs are being added, correct

Oh, sorry. Yes, only necessary CDNs are supported now and in the future. Don't worry, tracking isn't part of it. 😉

> Regarding the second question, I presume that only useful CDNs are being added, correct Oh, sorry. Yes, only necessary CDNs are supported now and in the future. Don't worry, tracking isn't part of it. 😉
question/discussion
label 1 year ago
closed this issue 1 year ago
referenced this issue from a commit 5 months ago
reopened this issue 5 months ago
Owner

I've to bump this issue up again.

Through #469 I have spent some time with MathJax and tried and tested many different things. I think some kind of minimal MathJax could be realized. Unfortunately the framework is still too big, so it isn't possible to include all functions. At least showing formals should be possible. Currently the folder is about 1 MB and should be ok.

I've added MathJax v2.7.5. Of course there are newer versions, but the package is still too big and it isn't possible to upgrade from v2.x to v3.x.

I think this should cover most cases at the moment.

I tested with these pages:

#### Interested in testing this?

https://codeberg.org/nobody/LocalCDN/wiki#user-content-5-you-recently-changed-something-in-the-code-and-i-would-like-to-test-it-how-can-i-do-that

I've to bump this issue up again. Through #469 I have spent some time with MathJax and tried and tested many different things. I think some kind of **minimal** MathJax could be realized. Unfortunately the framework is still too big, so it isn't possible to include all functions. At least showing formals should be possible. Currently the folder is about 1 MB and should be ok. --- I've added MathJax v2.7.5. Of course there are newer versions, but the package is still too big and it isn't possible to upgrade from v2.x to v3.x. I think this should cover most cases at the moment. I tested with these pages: * https://math.stackexchange.com/questions/2775981/prove-sin-alpha-beta-sin-alpha-gamma-sin-beta-gamma-4-cos-frac-al?rq=1 * https://pagedown.rbind.io/ --- #### Interested in testing this? https://codeberg.org/nobody/LocalCDN/wiki#user-content-5-you-recently-changed-something-in-the-code-and-i-would-like-to-test-it-how-can-i-do-that
testing
missing framework/mapping
and removed
question/discussion
labels 5 months ago
added this to the v2.6.8 milestone 5 months ago
Poster

LGTM! Tested those pages in Firefox Nightly and jumped around Math StackExchange; can't say much else other than well done on compressing things down to under 10% while keeping most utility :)

LGTM! Tested those pages in Firefox Nightly and jumped around Math StackExchange; can't say much else other than well done on compressing things down to under 10% while keeping most utility :)
changed title from Add MathJax.js to [math.stackexchange.com] Add MathJax.js 5 months ago
Owner

referenced this issue from a commit 5 months ago
Owner

I think the issue can be closed. The tests were successful so far. If there are problems, just reopen or create a new issue 😊

I think the issue can be closed. The tests were successful so far. If there are problems, just reopen or create a new issue 😊
removed the
testing
label 5 months ago
closed this issue 5 months ago
No Label
No Milestone
No Assignees
2 Participants