View Full Version : Latex on Physics website
Hello everyone
You see I create a small website about physics in my country, Poland...
And I have one page where pattern are (you now - formulas, in polish wzory)..
I use latex as You use on Your page... The only thing is that latex is very very slow....
Here is a page (http://fizyka.dk/tablice/wzory/wzory-liceum-i-gimnazjum-karta-wzorow)
Please, could You tell me how to speed up latex?
DaleSwanson
Sep17-11, 01:23 PM
First off, it didn't seem that slow to me.
I think what your site is doing is generating PNG images for each formula when someone loads it. You might as well pregenerate these images and simple put them on your website. For example your first formula is here:
http://latex.codecogs.com/png.latex?\150dpi%20v_{sr}%3D\frac{\Delta{S}}{\Del ta{t}}
Save that image and then just replace whatever code you are using to generate the formulas with it.
diazona
Sep17-11, 02:36 PM
I expect that CodeCogs caches the images themselves, so you don't have to worry about doing it.
Actually, if you're worried about long loading times, I doubt that the formulas are the problem. I'd be more concerned with the time it takes your server to create the HTML itself - on my computer it takes 2-4 seconds between the time my browser sends the request and the time the page starts to render. That's kind of on the long side. So I'd suggest looking into caching the static HTML of your page. Also, add Expires headers to your images.
This forum uses MathJax (http://www.mathjax.org/) rather than CodeCogs.
MathJax seems to be much faster and more efficient.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.