View Single Post
  #4  
Old 06-03-2010, 02:53 PM
 
TheWrongGrape TheWrongGrape is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: Los Angeles, CA
Posts: 68
 

Default Re: Improve frontend performance

My new site had been running extremely slowly so I made a big pot of coffee and settled down for some tedious code clean-up.

Instead of creating a skin from scratch, I had modified the existing template which I assume most people do. This left me with a lot of styles I wasn't using and duplicate styles because my theme was linking to main.css and altskin.css. I combined the two and then deleted and combined a lot of styles. I deleted styles for modules I knew I would never use.

Speaking of that, I also eliminated a lot of if-statements from my templates for modules that are always on and completely took out checks for modules I will never use. Did the same by eliminated JS files for modules I don't use and combining as many JS files as I can (be careful though, sometimes leads to conflicts, remember to ALWAYS have a backup to revert to).

Still working on improving site loading time and will be looking at compression and making some of my smaller icons into CSS sprites.
Reply With Quote