![]() |
ldinternet's NEWBIE tip of the day. Improve speed and reduce transfer costs.
For the newbs only...
Remove unnecessary whitespace in your html. The number of webmasters that DON'T do this is just amazing. Be smart, use your head..... just because you can't see anything, it doesn't mean that blank space isn't contributing to file size. You can reduce a 100KB page to 50-60KB easily, just by removing whitespace. It improves speed and reduces bandwidth usage, thus lowering costs. Remember that serving out a 100KB page 1 million times costs twice as much as serving out a 50KB page 1 million times. To do this, open your html d o c u m e n t in notepad or wordpad, and replace " " (two spaces) with "" (nothing). That will remove all the unnecessary space from your html and leave you with cleaner code, smaller file size and a faster loading page. |
good post just make sure if you have any j s c r i p t and such not to fuck with the code on it cause you might get issues
|
Come on , i mean what kind of tip is this?!
In order to save even 1KB you need to remove 1000 white spaces. To save 1Megabyte = 1,000,000 white spaces, sure you'll say with the volume it'll add up , but I disagree, I'd prefer to leave the whitespace in this way you can actually read what your doing clearly, well worth the $0.00001 that it costs you per blank space |
Quote:
What's the point of whitespace removal when all it will do is be 0.2395782 seconds faster when downloading the page? |
heh, i never do that
|
penny pincher :P
|
thanks for the tips..don't mind all the haters....people always try to find something negative about other people....
|
eh the spaces and empty lines are always helpful when it comes to editing, telling a newbie to remove them could be a bitch later on if editing is needed ... it will look like gibberish to them
but then again i guess that's why the FIND option is there :2 cents: |
Quote:
|
Damn I just weeded out my index page and realized that it saved me 4KB.
18,081 bytes -> 14,401 bytes. Very nice! |
nig be good for something -- now going through 15k HTML docu()ments and weeding out extra white spaces :Graucho
|
Quote:
|
Quote:
|
There is another upside to this -> it's harder for others to steal your stuff.
However, you need two keep to copies of each html page, one with whitespaces removed and one original. It's kinda a pain, and is probably not wortwhile. |
Whitespaces.. hmm, yeah.. well.. you can also remove the
" - signs from a href='s and img src='s etc.. (not alt's I think) ..and # from color codes.. there's plenty of ways to reduce filesize. There are programs that do this for you Remove all unnecesassary " # and whitespaces (such as linebreaks).. but the code will be extremely hard to read. I don't do this. ..but that won't do you much good if you have 55kb headergraphic anyways. |
Quote:
|
This thread will make the Top 10.
Doing this you'll save money and get better productivity if you have TGP, CJ, TopLists or any other trading site... so you'll <b>save and make</b> more money. |
i hand code each and every page. I know the exact size of each file from counting the bytes.
a fair enuff tip tho |
Quote:
files like that |
|
Quote:
I get a certain comforting satisfaction from knowing that my shit is as clean as can be... :glugglug |
Quote:
|
good tip, but I will further in saying to also take all your solid color images that make up a huge image, and slice them...once the final product is gone through image ready or whatever you use, then take those pic and delete them and make those td's have the background colors and size that those images did
|
I write code by hand as well and I put tabs and spaces in there for a reason but 2 each his own. :thumbsup
|
Quote:
I did it in ultraedit. Easy enough. |
All times are GMT -7. The time now is 07:41 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123