gud tutorial on combining js and css files into a single file ?????

Discussion in 'JavaScript' started by deepanshusethi, Apr 27, 2011.

  1. #1
    hi i m loking forward to improve my blog load time..i m using wordpress......i wanted to combine all js and css files into a single file.can anybody suggest a good tutorial for doing this i tried php speeedy plugin but it doesnt work with wp super cache :confused::(:rolleyes::eek:
     
    deepanshusethi, Apr 27, 2011 IP
  2. mts7

    mts7 Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    JavaScript and CSS are totally different, so it would be strange to have them both in one file, unless it was a simple text file that was included and parsed. You could just look into minifying your code...
     
    mts7, May 11, 2011 IP
  3. 7thand43rd

    7thand43rd Member

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #3
    I'd recommend the same as Mts7, look into minifying your code. It'll cut request way down and speed up your load.

    Google (No Quotes): "Google Minify Code"
     
    7thand43rd, May 12, 2011 IP
  4. Voynex

    Voynex Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I do not think you wil gain much in the website load time combining JS and CSS files. If you have a lot of small images you can save bandwidth and decreased a number of requests by combining them in one image.
     
    Voynex, May 24, 2011 IP