Re: Web Writing Tips - Cleaning HTML
Code bloat becomes an issue only when you have so much source code for the bot to deal with that they reach their upper limit (That they are willing to parse for a page) and then anything below that will not get spidered, last I heard it was 101k - Now if you have a page near 101k URL's in html are probably the least of your worries, but lets look at a post that "could" happen -
Start fake post -
My page has over 150k of source and the search engines will not spider the entire page, what are some ways in which I can optimize my page to reduce the amount of source code so that my content and links at the end of my code are within the spidering limits of the bot?
Fake answer -
Taking a look at your website, here are just a few things you can do to reduce your code size.
CSS - your current CSS is onpage (Inline) recommend moving to an external style sheet and sourcing from header.
Javascript - you have an insane amount of javascript onpage that does not be there, move all possible code to a .js file, and for god sakes find a better application to run those dropdowns as that code is way to complicated for what it is doing
Link sourcing - you are linking to all your internal links using your full URL, there is no need to do this as browsers will interpret the link as belonging to your domain, so just link to /filename.html or /folder/filename.html etc
Whitespace - for some reason you have a crazy amount of whitespace between your code, I would lose that editor - open up your page and delete all the extra whitespaces in your souce, carriage returns etc do increase filesize.
End fake answer.
Anyways, its quibbling over semantics but best practices are best practices and will never result in having to make such a post.
Starting LEC 7 soon but it won't be called LEC 7 - LEC 2012 coming soon!