![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Feb 2003
Location: Bostonnnn
Posts: 8,985
|
Quote:
What's the point of whitespace removal when all it will do is be 0.2395782 seconds faster when downloading the page? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Jan 2004
Location: Uranus
Posts: 2,808
|
penny pincher :P
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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....
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Dialer Kingpin
Join Date: Jun 2003
Location: New York
Posts: 10,816
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
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! |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Guest
Posts: n/a
|
nig be good for something -- now going through 15k HTML docu()ments and weeding out extra white spaces
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
So Fucking Banned
Join Date: Mar 2004
Posts: 974
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Too lazy to set a custom title
Join Date: Jul 2002
Posts: 40,377
|
Quote:
__________________
I don't use ICQ anymore. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
<&(©¿©)&>
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
ex-TeenGodFather
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
God is Brazilian
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
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. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
Confirmed User
Join Date: Oct 2003
Location: California
Posts: 2,397
|
Quote:
files like that |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Confirmed User
Join Date: Jun 2003
Location: Ohio, USA
Posts: 1,035
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 | |
Confirmed User
Join Date: Apr 2001
Posts: 8,245
|
Quote:
I get a certain comforting satisfaction from knowing that my shit is as clean as can be... ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 | |
God is Brazilian
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 |
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 | |
Guest
Posts: n/a
|
Quote:
I did it in ultraedit. Easy enough. |
|
![]() ![]() ![]() ![]() ![]() |