Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Latex on Physics website

  1. Sep 17, 2011 #1
    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....
    http://fizyka.dk/tablice/wzory/wzory-liceum-i-gimnazjum-karta-wzorow"

    Please, could You tell me how to speed up latex?
     
    Last edited by a moderator: Apr 26, 2017
  2. jcsd
  3. Sep 17, 2011 #2
    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 v_{sr}=\frac{\Delta{S}}{\Delta{t}}"

    Save that image and then just replace whatever code you are using to generate the formulas with it.
     
    Last edited by a moderator: Apr 26, 2017
  4. Sep 17, 2011 #3

    diazona

    User Avatar
    Homework Helper

    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.
     
  5. Sep 17, 2011 #4

    xts

    User Avatar

    This forum uses MathJax (http://www.mathjax.org/) rather than CodeCogs.
    MathJax seems to be much faster and more efficient.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Latex on Physics website
  1. LaTeX in PowerPoint (Replies: 2)

  2. Latex Help (Replies: 9)

  3. LaTeX help (Replies: 2)

Loading...