Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Cleaning Up Templates - Does it speed up?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-27-2011, 06:49 AM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Cleaning Up Templates - Does it speed up?

First, I know that the HTML of the templates is IMO a bit much. There are more nested divides than really necessary to accomplish the same layout.

Will cleaning that up help improve site load time?

Also, will it help speed up the customer side to remove unwanted if statements on modules? Or would I also need to remove the modules from the php?

I do know the CSS needs cleaned up as well. That should help speed things up, right?

What else can I do with the template & php code to speed up a site that is growing bigger & bigger?
__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
Reply With Quote
  #2  
Old 02-27-2011, 12:26 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Cleaning Up Templates - Does it speed up?

Yes, clean html and a much smaller css file will indeed reduce load time. I haven't seen significant improvement from removing if statements, but turning off advanced statistics and any unused modules will definitely help.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote

The following user thanks balinor for this useful post:
hhiker (03-04-2011)
  #3  
Old 03-04-2011, 10:10 PM
 
hhiker hhiker is offline
 

eXpert
  
Join Date: May 2007
Posts: 231
 

Default Re: Cleaning Up Templates - Does it speed up?

Thank you Padraic. Now for the endeavor.
__________________
-
-
Versions: 4.1.10 and 4.3.0 (see post for which cart)

"Until man duplicates a blade of grass, nature can laugh at his so-called scientific knowledge." - Thomas Edison

"Never doubt that a small group of thoughtful, committed citizens can change the world; indeed, it is the only thing that ever has." - Margaret Mead (1901-197 quoted in John M. RIchardson, ed. Making it Happen, 1982

"Water is the best of all things." - Pindar (c. 522 BC - c. 438 BC), Olympian Odes
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:58 AM.

   

 
X-Cart forums © 2001-2020