Is there an easy way to get rid of bloated code?

2 replies
I have been using RV Site Builder since it is free with my hosting company. I only have basic skills in HTML so it was faster using the WYSIWYG. After building 30+ pages I now realize the WYSIWYG leaves all the old code in after I edit. If I change a color, bold, italics, spacing, etc it looks fine on the page. When I look at the source code though it still shows all the previous stuff. It is overriding the old code but still leaving it there. I thought I heard that Google does not like unnecessary code. I edit a lot so each page has tons of extra, unneeded code.

Is there a way to delete this without having to go through each page and manually remove it? Does anyone know if it will actually make a difference to the crawlers?
#bloated #code #easy #rid
  • Profile picture of the author caesargus
    Well the only way that I've been able to get rid of bloated code, was to start the site design over.

    For instance, you can build a header and a footer page and create a content page that looks similar to the following:

    include "header.php";
    Content goes here
    include "footer.php";

    This allows you to make your site a bit more modular and you can make sure that your site design is nice and clean that way.

    Sure it's a bit of work, but the payoffs would be huge, since it makes maintenance a lot easier. Thinking of changing site design? - You would edit 2 or 3 pages versus 50 or 100 pages (depending on how big your site is).

    -------
    If your site design is similar across all the files, you can perform some file string magic in order to extract the data instead of you having to do it manually. In which case, I would choose a language that you're comfortable with - (recommended language is something like PERL - I use PHP, since I'm already familiar with it).

    If your files have similar code layouts (clear breaks between header and footer) and are consistent across all files, create a regex search and either store it in a database or store it in a file that you can access later.
    {{ DiscussionBoard.errors[2857418].message }}
  • Profile picture of the author RedMatrix
    At least you're not using MS Front Page, or MS Word -save as HTML! Talk about bloat!

    You have to decide to learn how to edit in HTML, or get a better WYSIWYG editor. For now, I can clean up your code manually for $1 page. <shameless plug>

    People swear by: http://net2.com/nvu/
    Signature

    ~Dave

    {{ DiscussionBoard.errors[2867400].message }}

Trending Topics