Forum Moderators: open

Message Too Old, No Replies

Removing line breaks and spaces

ugly but light(er) code

         

Tourz

3:59 am on Jun 25, 2005 (gmt 0)

10+ Year Member



Hello out there!

Does anyone have any comments about converting line breaks to spaces and deleting extra spaces in html code?

It makes the code less readable but lightens up my dreamweaver pages by a third. Any comments about extra long lines being good or bad?

Cheers,
Tourz

Moby_Dim

2:45 pm on Jun 25, 2005 (gmt 0)

10+ Year Member



Depends on the html page author's habits. "dreamweaver pages" are ugly imho. More than 50% of a page size are obsolete.

Tourz

7:28 pm on Jun 26, 2005 (gmt 0)

10+ Year Member



Yes, the dreamweaver code is not concise... I've started switching from tables to layers and eventually want to do everything with pure CSS like I've seen on a few slick sites.

Using Text Monkey I have been able to lighten up the pages, producing some long lines of code... some pages now 60 long lines instead of 1000 and 35% lighter.

It has been four months or so since I started doing this and no sign of penalty in my search engine rankings however in the last few weeks it seems that my page rank has gone down... so I ask the above question about line size.

I don't know when my site went down to PR4 but it may have been with this recent "bourbon" update. It could have been for many reasons besides the no-blank-space mod... changing the index page title too many times in three days after no change in a year? Bad back-links or dropped reciprocal links -- or maybe I just hadn't checked my page rank in the last eight months and it changed long ago...

The funny thing is that my site is still at the top of the lists, outranking PR6 sites for most applicable keyword phrases. It is even getting more traffic after recently turning my index page into a quasi site map -- using page titles for link text.

I've given up on the Google toolbar, even unistalled it the other day. It seems like its relevance keeps going downhill as the Google team tries to keep the SEOs in check. Using the pagerank feature has always made me a little paranoid... I think it lets google know if you are playing the game too much.

From rises in some of my competitors search engine placements, I think site size is playing a bigger role lately.

Anyways, off topic now... I do need to get rid of the crap dreamweaver code and add more content.

And, of course, traffic isn't everything... getting the fish to bite once it's there is the other key to success and a different topic entirely!

tedster

8:24 pm on Jun 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Spaces and indents can add up to a good chunk of bandwidth on a sizeable page. But a few line breaks can make your code easier to edit and add very few bytes. As long as they are not inside a tag or some other really wrong spot, there's very minimal impact.

As tourz mentions, you don't need a lot of PR to rank - but light and clean code can be a help in many ways, and the discipline involved in creating it has many benefits.

Tourz

10:51 pm on Jun 27, 2005 (gmt 0)

10+ Year Member



discipline -- can you buy that? ;-) I guess you can hire someone else's in the meantime.

Right now, when I need to modify the ugly code left after removing all the white space, I just use the "apply source formatting" command in DW.

After further reading I see a few people mention removing white space to lighten up their pages -- which is good as I have only come across one other site so far that is actually doing it.

I think I'll keep reading, thanks for the replies.

treeline

10:53 pm on Jun 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hard to read code discourages others from borrowing your ideas. Nothing will stop the determined, but the rest steal someone else's ideas.