ldinternet's NEWBIE tip of the day. Improve speed and reduce transfer costs.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ldinternet
    Confirmed User
    • Apr 2001
    • 8245

    #1

    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.
  • juicylinks
    So Fucking Banned
    • Apr 2001
    • 122992

    #2
    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

    Comment

    • zagi
      Confirmed User
      • Jan 2004
      • 1238

      #3
      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

      Comment

      • AdultNex
        Confirmed User
        • Feb 2003
        • 8985

        #4
        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?

        Comment

        • polish_aristocrat
          Too lazy to set a custom title
          • Jul 2002
          • 40377

          #5
          heh, i never do that
          I don't use ICQ anymore.

          Comment

          • warlock5
            Confirmed User
            • Jan 2004
            • 2808

            #6
            penny pincher :P

            Comment

            • Shaze
              Confirmed User
              • Oct 2003
              • 2662

              #7
              thanks for the tips..don't mind all the haters....people always try to find something negative about other people....
              Adult Search Engine Japanese Porn Thai Porn

              Comment

              • emthree
                Dialer Kingpin
                • Jun 2003
                • 10816

                #8
                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 •

                Comment

                • emthree
                  Dialer Kingpin
                  • Jun 2003
                  • 10816

                  #9
                  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 •

                  Comment

                  • X37375787

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

                    18,081 bytes -> 14,401 bytes.

                    Very nice!

                    Comment

                    • X37375787

                      #11
                      nig be good for something -- now going through 15k HTML docu()ments and weeding out extra white spaces
                      Last edited by Guest; 04-17-2004, 07:36 PM.

                      Comment

                      • AZN 4 Lyfe
                        So Fucking Banned
                        • Mar 2004
                        • 974

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

                        Comment

                        • polish_aristocrat
                          Too lazy to set a custom title
                          • Jul 2002
                          • 40377

                          #13
                          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.

                          Comment

                          • woj
                            <&(©¿©)&>
                            • Jul 2002
                            • 47880

                            #14
                            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

                            Comment

                            • Jakke PNG
                              ex-TeenGodFather
                              • Nov 2001
                              • 20306

                              #15
                              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.

                              Comment

                              • Jer
                                God is Brazilian
                                • Feb 2001
                                • 10601

                                #16
                                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.

                                Comment

                                • Jer
                                  God is Brazilian
                                  • Feb 2001
                                  • 10601

                                  #17
                                  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.

                                  Comment

                                  • EddiePulp
                                    Confirmed User
                                    • Mar 2004
                                    • 1332

                                    #18
                                    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.

                                    Comment

                                    • steve90
                                      Confirmed User
                                      • Oct 2003
                                      • 2397

                                      #19
                                      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

                                      Comment

                                      • Big Fish 47
                                        Confirmed User
                                        • Jun 2003
                                        • 1035

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

                                        Comment

                                        • ldinternet
                                          Confirmed User
                                          • Apr 2001
                                          • 8245

                                          #21
                                          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...

                                          Comment

                                          • Jer
                                            God is Brazilian
                                            • Feb 2001
                                            • 10601

                                            #22
                                            Originally posted by Jer
                                            This thread will make the Top 10.
                                            Top 1

                                            Comment

                                            • Jace
                                              FBOP Class Of 2013
                                              • Jan 2004
                                              • 35562

                                              #23
                                              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

                                              Comment

                                              • dirtysouth
                                                Confirmed User
                                                • Jul 2003
                                                • 2613

                                                #24
                                                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

                                                Comment

                                                • X37375787

                                                  #25
                                                  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.

                                                  Comment

                                                  Working...