Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-17-2004, 05:17 PM   #1
ldinternet
Confirmed User
 
Join Date: Apr 2001
Posts: 8,245
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.
ldinternet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2004, 05:53 PM   #2
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
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
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2004, 06:07 PM   #3
zagi
Confirmed User
 
Join Date: Jan 2004
Posts: 1,238
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
__________________
Managed US/NL Hosting [ [Reality Check Network ]
Dell XEON Servers + 1/2/3 TB Packages ICQ: 4-930-562
zagi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2004, 06:10 PM   #4
AdultNex
Confirmed User
 
Join Date: Feb 2003
Location: Bostonnnn
Posts: 8,985
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?
AdultNex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2004, 06:14 PM   #5
polish_aristocrat
Too lazy to set a custom title
 
Join Date: Jul 2002
Posts: 40,377
heh, i never do that
__________________
I don't use ICQ anymore.
polish_aristocrat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2004, 06:24 PM   #6
warlock5
Confirmed User
 
warlock5's Avatar
 
Join Date: Jan 2004
Location: Uranus
Posts: 2,808
penny pincher :P
warlock5 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2004, 06:27 PM   #7
Shaze
Confirmed User
 
Join Date: Oct 2003
Location: Cyberspace
Posts: 2,662
thanks for the tips..don't mind all the haters....people always try to find something negative about other people....
Shaze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2004, 08:26 PM   #8
emthree
Dialer Kingpin
 
Join Date: Jun 2003
Location: New York
Posts: 10,816
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
__________________

Sell Patches & Pills
emthree is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2004, 08:27 PM   #9
emthree
Dialer Kingpin
 
Join Date: Jun 2003
Location: New York
Posts: 10,816
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
__________________

Sell Patches & Pills
emthree is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2004, 08:32 PM   #10
X37375787
Guest
 
Posts: n/a
Damn I just weeded out my index page and realized that it saved me 4KB.

18,081 bytes -> 14,401 bytes.

Very nice!
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2004, 08:34 PM   #11
X37375787
Guest
 
Posts: n/a
nig be good for something -- now going through 15k HTML docu()ments and weeding out extra white spaces

Last edited by X37375787; 04-17-2004 at 08:36 PM..
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-17-2004, 08:37 PM   #12
AZN 4 Lyfe
So Fucking Banned
 
Join Date: Mar 2004
Posts: 974
Quote:
Originally posted by Equinox
nig be good for something -- now going through 15k HTML docu()ments and weeding out extra white spaces
lol.
AZN 4 Lyfe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-19-2004, 05:08 AM   #13
polish_aristocrat
Too lazy to set a custom title
 
Join Date: Jul 2002
Posts: 40,377
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
__________________
I don't use ICQ anymore.
polish_aristocrat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-19-2004, 06:37 AM   #14
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
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.
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-19-2004, 06:50 AM   #15
Jakke PNG
ex-TeenGodFather
 
Jakke PNG's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: Suomi Finland Perkele
Posts: 20,306
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.
__________________
..and I'm off.
Jakke PNG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-19-2004, 06:52 AM   #16
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-19-2004, 06:54 AM   #17
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
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.
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-19-2004, 06:56 AM   #18
EddiePulp
Confirmed User
 
Join Date: Mar 2004
Location: Australia iCQ:408018496
Posts: 1,332
i hand code each and every page. I know the exact size of each file from counting the bytes.

a fair enuff tip tho
__________________
I dont need a sig.
EddiePulp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-19-2004, 06:58 AM   #19
steve90
Confirmed User
 
steve90's Avatar
 
Join Date: Oct 2003
Location: California
Posts: 2,397
Quote:
Originally posted by Equinox
nig be good for something -- now going through 15k HTML docu()ments and weeding out extra white spaces
that can be done in seconds i have a program that can mass edit
files like that
steve90 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-19-2004, 08:09 AM   #20
Big Fish 47
Confirmed User
 
Join Date: Jun 2003
Location: Ohio, USA
Posts: 1,035
http://www.jumbo.com/newfiles/files....9&S=&ord=&mv=1
__________________
Big Fish 47 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-19-2004, 11:06 AM   #21
ldinternet
Confirmed User
 
Join Date: Apr 2001
Posts: 8,245
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...
ldinternet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-19-2004, 11:19 AM   #22
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
Quote:
Originally posted by Jer
This thread will make the Top 10.
Top 1
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-19-2004, 05:31 PM   #23
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
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
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-19-2004, 05:37 PM   #24
dirtysouth
Confirmed User
 
Join Date: Jul 2003
Location: Mobtown
Posts: 2,613
I write code by hand as well and I put tabs and spaces in there for a reason but 2 each his own.
__________________
no sig
dirtysouth is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-19-2004, 05:56 PM   #25
X37375787
Guest
 
Posts: n/a
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.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.