StatCounter User Forum  
StatCounter Free web tracker and counter

Go Back   StatCounter User Forum > Webmaster > Lounge (non-StatCounter related topics here!)

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 03-06-2006, 07:53 PM
JWJ JWJ is offline
Moderator
 
Join Date: Jan 2004
Location: England
Posts: 5,772
Default thumbs up to clean code.

I am in the process of making another new page on my site and this involves copying code from existing pages to new ones. As I'm copying the code I am taking the opportunity to strip out all <font> tags etc and making it totally css dependant. For the first time I have actually seen two, virtually identical pages, one written as I always used to write code and the other much cleaner. The old page did not validate, the new one does ... but the thing that startled me the most is page size. The old page is 15kb and the new one 4kb. There are a couple of other matters that account for some of the difference but in the main I'm looking at a two-third size reduction.
__________________
... John ...
  #2  
Old 03-06-2006, 07:58 PM
jonra01 jonra01 is offline
Master Member
 
Join Date: Feb 2005
Location: Mississippi
Posts: 3,607
Default

You are also looking at code that is easier to read and edit, aren't you?
  #3  
Old 03-06-2006, 08:01 PM
JWJ JWJ is offline
Moderator
 
Join Date: Jan 2004
Location: England
Posts: 5,772
Default

Absolutely !!!
__________________
... John ...
  #4  
Old 03-06-2006, 09:02 PM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,177
Default

Of course all the trouble has simply been moved to the style sheet LOL!

But all in all that can be easier to handle - after all the initial frustrations of css, of course - with the developper tool in FF for instance where you can edit CSS on the fly and see the effect right away.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #5  
Old 03-06-2006, 10:46 PM
howardgreens howardgreens is offline
Member
 
Join Date: Mar 2006
Location: Maryland
Posts: 265
Default

Hm...

On this particular system, using Firefox as a viewer, the page is anything but 'clean', however...
  #6  
Old 03-06-2006, 11:52 PM
Sharron's Avatar
Sharron Sharron is offline
Moderator
 
Join Date: Feb 2005
Posts: 7,184
Default

I would hate to concur, but I must FF is making a mess of it.
__________________
Don't argue with an idiot; people watching may not be able to tell the difference.
  #7  
Old 03-07-2006, 12:24 AM
arlens arlens is offline
Active Member
 
Join Date: Jul 2005
Location: Northern California
Posts: 348
Default

From here it looks great in IE 7 but very messy in FF 1.5
  #8  
Old 03-07-2006, 12:42 AM
webado's Avatar
webado webado is offline
Moderator
 
Join Date: Apr 2004
Location: Montreal, Quebec, Canada
Posts: 28,177
Default

Ouch! Indeed FF has decided all the divs are one on top of each other.
__________________
Christina
>>Forum Moderator<<

Please do not PM me for support. The forum is here for that.
  #9  
Old 03-07-2006, 01:16 AM
Sharron's Avatar
Sharron Sharron is offline
Moderator
 
Join Date: Feb 2005
Posts: 7,184
Default

deleted post contents as I decided I didn't know what I was doing! Sorry
__________________
Don't argue with an idiot; people watching may not be able to tell the difference.

Last edited by Sharron; 03-07-2006 at 05:01 AM.
  #10  
Old 03-07-2006, 01:18 AM
Sharron's Avatar
Sharron Sharron is offline
Moderator
 
Join Date: Feb 2005
Posts: 7,184
Default

Same here, more ignorance
Kick me, I don't mind!
__________________
Don't argue with an idiot; people watching may not be able to tell the difference.

Last edited by Sharron; 03-07-2006 at 05:02 AM.
Closed Thread

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:04 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.