View Single Post
  #1 ()  
Old 01-31-2008, 01:11 AM
bristweb bristweb is offline
3dCart Power User
 
Join Date: Dec 2007
Posts: 141
Default Reduce the bulk of unnecessary code!

this is the second or third time i have done this to the products listing page. the default "listing_0.html" is 759 lines of code

WAY too much html in here. this is bad for several reason
  1. difficult to understand
  2. visitors have to reload all this html on each page, css is cached and therefore much faster
  3. more code for search engines to parse, making your content not as high on the page

Just to filter through this code and trim it down takes me an hour, and is pretty tedious. I will provide it here, if anyone is interested in customizing their product pages, this could be very useful! This reduces the code to only 411 lines; basically half the size!

from there you can easily modify the page from a mess of tables to a clean CSS design.

you can download the txt file and rename it to .html and put in your templates folder. backup first, and use at your own risk! if this is helpful to people i might post more or post versions that have css. let me know
Attached Files
File Type: txt listing_0.txt (15.8 KB, 26 views)
Reply With Quote