GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   ldinternet's NEWBIE tip of the day. Improve speed and reduce transfer costs. (https://gfy.com/showthread.php?t=270973)

ldinternet 04-17-2004 05:17 PM

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.

Juicy D. Links 04-17-2004 05:53 PM

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

zagi 04-17-2004 06:07 PM

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

AdultNex 04-17-2004 06:10 PM

Quote:

Originally posted by zagi
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

I agree, I'd rather have pages with whitespace that makes it easier to edit.

What's the point of whitespace removal when all it will do is be 0.2395782 seconds faster when downloading the page?

polish_aristocrat 04-17-2004 06:14 PM

heh, i never do that

warlock5 04-17-2004 06:24 PM

penny pincher :P

Shaze 04-17-2004 06:27 PM

thanks for the tips..don't mind all the haters....people always try to find something negative about other people....

emthree 04-17-2004 08:26 PM

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:

emthree 04-17-2004 08:27 PM

Quote:

Originally posted by Shaze
thanks for the tips..don't mind all the haters....people always try to find something negative about other people....
No haters when it comes to advice, just opinions and views

X37375787 04-17-2004 08:32 PM

Damn I just weeded out my index page and realized that it saved me 4KB.

18,081 bytes -> 14,401 bytes.

Very nice!

X37375787 04-17-2004 08:34 PM

nig be good for something -- now going through 15k HTML docu()ments and weeding out extra white spaces :Graucho

AZN 4 Lyfe 04-17-2004 08:37 PM

Quote:

Originally posted by Equinox
nig be good for something -- now going through 15k HTML docu()ments and weeding out extra white spaces :Graucho
lol.

polish_aristocrat 04-19-2004 05:08 AM

Quote:

Originally posted by emthree
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

true

woj 04-19-2004 06:37 AM

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.

Jakke PNG 04-19-2004 06:50 AM

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.

Jer 04-19-2004 06:52 AM

Quote:

Originally posted by woj

However, you need two keep to copies of each html page, one with whitespaces removed and one original.

I was going to post that. It isn't "kinda a pain" if you do this just with your bigger html pages or just high traffic pages.

Jer 04-19-2004 06:54 AM

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.

EddiePulp 04-19-2004 06:56 AM

i hand code each and every page. I know the exact size of each file from counting the bytes.

a fair enuff tip tho

steve90 04-19-2004 06:58 AM

Quote:

Originally posted by Equinox
nig be good for something -- now going through 15k HTML docu()ments and weeding out extra white spaces :Graucho
that can be done in seconds i have a program that can mass edit
files like that

Big Fish 47 04-19-2004 08:09 AM

http://www.jumbo.com/newfiles/files....9&S=&ord=&mv=1

ldinternet 04-19-2004 11:06 AM

Quote:

Originally posted by TeenGodFather
Remove all unnecesassary " # and whitespaces (such as linebreaks).. but the code will be extremely hard to read. I don't do this.
Yeah... I don't put everything on one line - I just remove all the unncessary crap from my pages and leave the linebreaks in there. I also run pages through the validator at w3.org before duplicating them.

I get a certain comforting satisfaction from knowing that my shit is as clean as can be... :glugglug

Jer 04-19-2004 11:19 AM

Quote:

Originally posted by Jer
This thread will make the Top 10.
Top 1 :glugglug

Jace 04-19-2004 05:31 PM

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

dirtysouth 04-19-2004 05:37 PM

I write code by hand as well and I put tabs and spaces in there for a reason but 2 each his own. :thumbsup

X37375787 04-19-2004 05:56 PM

Quote:

Originally posted by steve90


that can be done in seconds i have a program that can mass edit
files like that


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