Calculate Code to Content Ratio

2004-12-21 23:49 - Bookmarklets

I was reading this page about code to content ratio earlier today. The gist of it is, when your HTML pages have (way) more HTML than they have words in them, they are bad. A measure of this is the ratio of code to content. A ratio of 1 means all content, 0 means all code. That page has an online calculator, and lower down someone commented about a bookmarklet they wrote to figure it out.

Well, armed with my enumerator below, I discovered a much much simpler way to figure it out, armed with two simple properties that do all the work for you! Firefox (Mozilla) only.

C2C

Comments:

No comments!

Post a comment:

Username
Password
  If you do not have an account to log in to yet, register your own account. You will not enter any personal info and need not supply an email address.
Subject:
Comment:

You may use Markdown syntax in the comment, but no HTML. Hints:

If you are attempting to contact me, ask me a question, etc, please send me a message through the contact form rather than posting a comment here. Thank you. (If you post a comment anyway when it should be a message to me, I'll probably just delete your comment. I don't like clutter.)