Why do Chrome & Firefox slowly render my home page using MathJax? - javascript

This is my experimental site using MathJax.
I browse it using Chrome, Firefox, and IE.
I notice that IE renders slowly. But Chrome and Firefox do more slowly. :-)
Is there any secret tip to speed up the rendering?
Edit 1
I am still uploading the MathJax using FileZilla now to the remote server.
It needs much time to complete.
Even I use my development machine as a server with MathJax libraries installed, the result is the same as what I did above in remote server.

Your site is returning 404 requests for these files:
http://www.begolu.com/MathJax/fonts/HTML-CSS/TeX/otf/MathJax_Size4-Regular.otf
http://www.begolu.com/MathJax/fonts/HTML-CSS/TeX/otf/MathJax_Main-Regular.otf-
http://www.begolu.com/MathJax/fonts/HTML-CSS/TeX/otf/MathJax_Math-Italic.otf
http://www.begolu.com/MathJax/fonts/HTML-CSS/TeX/otf/MathJax_Size1-Regular.otf
http://www.begolu.com/MathJax/fonts/HTML-CSS/TeX/otf/MathJax_Main-Bold.otf
Look at the net tab with Firebug

Related

Google chrome screen content freezes

We have an old web application (javascript jquery + css) that it is displayed in a lot of displays (google chrome browser), randomly (we do not know the casuistry) the browser active tab content freezes. We can open a new browser window and it woks normally.
The javascript does changes to the DOM and we can see them in developer console, but the content does not change.
We also tried to override the DOM through the browser console with same effect.
We tried to do a location.reload() and we saw in the console that browser downloads all (javascript, css files etc..) but the screen continues unaltered.
The software version we are using:
Browser: Google chrome 44 (same version in another installations and we never experimented this issue before)
OS: Linux Centos 7.2
Graphin card Drivers: Nvidia different versions.
Different configurations tried (not solving the problem):
- GPU enabled
- GPU disabled
Currently we are trying this actions to see if solves the issue (we do not have results yet )
- Update Google Chrome to latest version
- Update Nidivia drivers` to latest version
Any idea about why is this happening?
Any help would be appreciated.
Thanks you all very much.

Webworker served from the local filesystem not working

I am trying to make the web worker example from MDN to work when it is not served from a server but opened directly open from my local filesystem (via a via file:// URL)
The example works fine when served from Apache at http://localhost/1/simple-web-worker-gh-pages/index.html
but it doesn't when it is read locally at file:///var/www/html/1/simple-web-worker-gh-pages/index.html
The developer console shows that messages are posted but there is no answer from the worker. (I tried both Firefox and Chromium.)
How can I make it to work ?
(There's a similar question failed to load script - Webworker (PDF.JS) , but my problem is different, as I don't see a "Failed to load script" error.)
Avoid developing using file:/// - you'll waste time debugging, as not everything is supposed to work there.
In case of Worker() in Firefox, this was supported a year ago, but was apparently disabled in Firefox 68.
See Firefox 68: local files now treated as cross-origin; is there a way to override? - if you set privacy.file_unique_origin to false in about:config, the example should work.

Processing.js and ColdFusion Server with IE

I am trying to use Processing.js on our ColdFusion server and having no luck. If I take a regular html program, that runs fine locally, and save it to our server, the canvas will not show in IE 11. However, it displays fine with Chrome.
Unfortunately, the app I am trying to fold this into was not written to be cross browser and needs IE. Has anyone gotten processing to work on a ColdFusion server using IE as the browser?

Web worker won't start in IE unless the cache is cleared

I'm having a really weird bug in my HTML5 script. I wrote a sharepoint app completely in OData which uses a few HTML 5 webworker to do the number crunching in the background. This works perfect on all major browsers (FF, IE10+ Chrome, ...). However, when I perform a refresh or browse to the page again. The script still works as intended on FF and Chrome, but hangs on IE.
In my network view I see a request for the Worker.js file, but with a 304 NOT MODIFIED response. IE then just hangs there on that request with a status of (Pending). This issue only gets resolved when I clear my browser cache.
I correctly close all my threads with self.close().
Any idea what the issue could be? I'm not sure if it's a code issue, a browser issue or a server side issue but I can replicate the bug on Sharepoint online as well as on a local server. The whole project is JS only, so I can't modify headers as a workaround either.
UPDATE: I ran exactly the same code outside of a sharepoint environment, and it worked perfectly. Issue is Sharepoint related.
using a time based querystring parameter prevents caching showing http status 200 on each refresh. tested on latest chrome, ie, ff;
var opus = new Worker("worker.js?q=" + new Date().getTime().toString() );
to be honest this a long shot as i do not have sharepoint right now
SharePoint sends the header:
Content-Disposition: attachment; filename="xyz.js"
X-Download-Options: noopen
and the IE Web Worker Implantation then does not run this web worker. (Tested in IE11) In the IE Network Monitor the request still on pending, even the Response text is visible.
I know so fare two workarounds:
Place the web worker js in the layouts folder (needs a Farm Solution, with the downside of this)
Set the Browser File Handling for the Web application to Permissive (maybe your security is not amused)

Same Javascript code but not same act

//Edit
Hello.
I have made a website and uploaded to the host. So, the codes what are in my localhost and in the website host are same. Everything works except one JavaScript(jQuery) action(A dropdown menu). On my localhost it works perfect, on the website host, it drops and rises again and than doesn't drop again.
site : http://www.hastahakki.com/index.php?page=anasayfa
The problem on the big buttons like "Doğru Hastane Seçimi" , "Hasta Şikayetleri"
How do I do?
It's rare for pure client code to work differently in a hosted environment provided it is uploaded properly and the same browser is used.
First I would check it's not a cache issue by clearing my browser cache.
Then I would view it in a browser with modern developer tools, which is most browsers with the latest version (Firefox requires the excellent Firebug plugin). In Chrome for instance, looking at the Network output will show you if any resources are failing to load, and the Scripts view will show you any local JavaScript errors that might be triggered by the hosted version.

Categories

Resources