mathjax popup

  • 10 Replies
  • 386 Views

0 Members and 1 Guest are viewing this topic.

Offline Caleidoscope

  • *
  • Fractal Fanatic
  • ***
  • Posts: 23
    • Graphic-Unlimited.com
« on: November 05, 2017, 09:35:49 AM »
Hi you guys,

Whatever I do on the site, clicking the menu, new page, pictures etc.  I got a little popup  on the left side at the bottom that pops up 3 times with the text:
"loading [MathJax]extentions/Math menu JS"   changing  in Math menu/zoom.   It is really annoying,  am I the only one? 
Site looks great by the way.

And I do miss the gallery concerning JWildfire, a lot off people like it, including me ;)

Have a great Sunday you all :)
« Last Edit: February 11, 2018, 09:44:08 AM by 3DickUlus, Reason: accepted »

Offline Anon

  • *
  • Fractal Fluff
  • *****
  • Posts: 354
« Reply #1 on: November 05, 2017, 10:43:37 AM »
MathJax explanation in this thread:
Re: latex support


Offline Fraktalist

  • *
  • Administrator
  • *******
  • Strange Attractor
  • Posts: 780
« Reply #2 on: November 05, 2017, 01:46:16 PM »
I find that popup very annoying too. But We haven't found a solution without it - if it ever pops up, we'll implement it rightaway ;)

added a jwildfire gallery category.
https://fractalforums.org/index.php?action=gallery;cat=24

Offline Caleidoscope

  • *
  • Fractal Fanatic
  • ***
  • Posts: 23
    • Graphic-Unlimited.com
« Reply #3 on: November 14, 2017, 09:45:55 AM »
I find that popup very annoying too. But We haven't found a solution without it - if it ever pops up, we'll implement it rightaway ;)

added a jwildfire gallery category.
https://fractalforums.org/index.php?action=gallery;cat=24

Sorry for the late reply ,  indeed it is destracting but I'll survive  :)
Thanks for the Jwildfire category.

Just one more remark, I've made a donation but I miss one option,  one without a fixed amount.  Just an open donation button where you can say for yourself I want to donate say 50 dollar or whatever.  Is easy and quick and inviting to donate.   6 months 10 dollar or 2o for a year  or 1 dollar a month.  You know what I mean?    Just an idea.

Have a great day! 

Offline Fraktalist

  • *
  • Administrator
  • *******
  • Strange Attractor
  • Posts: 780
« Reply #4 on: November 14, 2017, 10:02:11 AM »
ah, that was you!
received - thanks a lot in the name of the whole community!

We'll look into making donations a bit more comfortable, thanks for the tips.

Offline Caleidoscope

  • *
  • Fractal Fanatic
  • ***
  • Posts: 23
    • Graphic-Unlimited.com
« Reply #5 on: November 14, 2017, 03:36:24 PM »
ah, that was you!
received - thanks a lot in the name of the whole community!

We'll look into making donations a bit more comfortable, thanks for the tips.

:D   :beer:  just practising ;)

Offline 3DickUlus

  • *
  • Fractal Frogurt
  • ******
  • Posts: 467
    • Digilantism
« Reply #6 on: February 11, 2018, 09:40:38 AM »
bump

the MathJax mod loads from cdn.mathjax.org/mathjax/latest/ , the whole thing is about 20MB but it only loads what it needs (?), we could install our own copy from github but then we would have to maintain updates. this would also incur bandwidth on our server and probably not be any faster getting into a user's browser, an option might be to use a stable release version rather than latest, unless of course latest is the latest stable release version, in that case it is what it is :-X

edit: the popup is a security feature that lets you know where the java is coming from
Resistance is fertile... you will be illuminated!

https://en.wikibooks.org/wiki/Fractals/fragmentarium

Offline Anon

  • *
  • Fractal Fluff
  • *****
  • Posts: 354
« Reply #7 on: February 11, 2018, 10:10:42 AM »
Another option:.
Use uMatrix to block mathjax.org and only enable it temporarily if needed.

uMatrix is available on Firefox and Chrome.

Offline Fraktalist

  • *
  • Administrator
  • *******
  • Strange Attractor
  • Posts: 780
« Reply #8 on: February 13, 2018, 10:34:18 AM »
bump

the MathJax mod loads from cdn.mathjax.org/mathjax/latest/ , the whole thing is about 20MB but it only loads what it needs (?), we could install our own copy from github but then we would have to maintain updates. this would also incur bandwidth on our server and probably not be any faster getting into a user's browser, an option might be to use a stable release version rather than latest, unless of course latest is the latest stable release version, in that case it is what it is :-X

edit: the popup is a security feature that lets you know where the java is coming from

I'd be totally fine if you install it on our server! feel free to go ahead if you like!
I personally don't need mathjax and find that message for each page load a bit annoying. so why not?
maybe one of those who does need and use mathjax regularly can take the job to check for up to date versions and inform us (e.g. 3dickulus ;)) when theres a new one.

Offline claude

  • *
  • Fractal Frankfurter
  • *
  • Posts: 549
    • mathr.co.uk
« Reply #9 on: February 13, 2018, 04:38:06 PM »
if the server runs debian / ubuntu / probbaly other distros too, and you have admin priviledges, you could install a distro package (may not be the latest, but will have security fixes most likely).  The Debian package is called libjs-mathjax and the files are in /usr/share/javascript/mathjax/ which you could export from the webserver directly.   For that directory served as https://example.com/mathjax/ I put this in the head tag of pages which want maths typeset:
Code: [Select]
<script type="text/javascript" src="/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
libjs-jquery also exists, as do many other packages with libjs- in the name...

Offline 3DickUlus

  • *
  • Fractal Frogurt
  • ******
  • Posts: 467
    • Digilantism
« Reply #10 on: February 14, 2018, 06:13:41 AM »
users would still see the popup, the js would be served by us, java is not executed on the server, it's executed in the browser, that's why it can be the source of security problems. browser caches js, js gets infected, browser becomes spam bot.

the mathjax references in the forum code need to be updated to point at the "new" mathjax site, using their site means we never have to update or serve the files and even though I hate java the current scenario seems the most efficient.

Sources/Mod-MathJax.php: line 38
Code: [Select]
      <script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=default,Safe"></script>';

when I grep jquery in the sources I see a mess...

Post.php jquery.com/jquery-1.12.4
Post.php googleapis.com/ajax/libs/jquery/1.7.2
SEO using it's own customized version?
Subs-Facepunch.php googleapis.com/ajax/libs/jquery/1.7
Subs-FancyBox.php  yandex.st/jquery/1.11.2 ??? this was a surprise and makes me cringe :fp:
Subs-Shoutbox.php googleapis.com/ajax/libs/jquery/1.10.0
TopicPrefix.php googleapis.com/ajax/libs/jquery/1.11.2
YorkyTheme/index.template.php googleapis.com/ajax/libs/jquery/2.1.4

...as many as 6 or 7 different versions and that's just the base, I'm sure there's a few more lurking in the Themes.

mathjax anyone can fix it's just one link, jquery? requires a knowledge of js and jquery versions and probably some debugging to ensure those pages work with the latest version and then testing in the different browsers and OSs etc etc etc not something I want to get started but hey go ahead be my guest.