Bandwidth saving tip... especially recommended for LARGER sites!

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

    #1

    Bandwidth saving tip... especially recommended for LARGER sites!

    I've never really regarded this as a TIP, but looking at the page sources of sites that I find around the net... especially larger sites, I realise how much some people must be paying, un-necesserily, for bandwidth.

    The tip is simple - remove all the whitespace from your HTML code. For example, if you use an editor such as Dreamweaver, it inserts a lot of white space to create "structured code". You may not see anything in this white space - but the computer does.

    Open the HTML file in Word Pad. Go to the "replace" option, and in the find what field, put two spaces. Yes, hit your space bar twice.

    In the "replace with" field, put nothing. Leave it blank.

    Then hit "replace all". Walla! All white space gone. Check the file size - depending on the original size, the orginal size can be reduced from 1k to 50k. And yes, when have a HTML page that is 200k like Easy Pic, removing all the white space does make a difference. Especially when it is being visited 500,000 times daily.
  • Web_Mistress
    Confirmed User
    • Feb 2001
    • 374

    #2
    Cool tip! I'll have to try that. I program most of my stuff in homesite, so I don't add a lot, but I do add some padding for readability. Does this put the code though all on one big long line?

    ------------------
    ~Every time I call myself Webmistress, I feel I should be in spike heels with a whip~

    KICK ASS content and sponsor Oliver Klozov ~ Quality babes
    Free Net Pass
    isprime quality hosting
    XXXPorntastic Link List Submit your site today!

    Comment

    • ldinternet
      Confirmed User
      • Apr 2001
      • 8245

      #3
      Nah, not if it is done in Word Pad.

      It just removes the padding, meaning that the page is smaller... and the bandwidth bill is MUCH less on more visited pages.

      Comment

      • JT
        My mother was an EMU
        • Jan 1999
        • 202

        #4
        An additional tip on this thread is keep a copy of the code before you remove the white space that way when you have to edit it
        you can read much easier. then re-remove the white space before you put it up online. It's a little more work but it's easier
        to read.

        John aka JT
        [email protected]

        Comment

        • wiZd0m
          Confirmed User
          • Feb 2001
          • 1526

          #5
          I have better Tip, HOTLINK all your graphics from Terra.es and you will get a significant reduction on your bandwith charges.

          It seems to be the norm lately anyways

          ------------------
          wiZd0m
          Fortune Pussy Adult Links
          ----------
          wiZd0m

          Comment

          • Susan
            Confirmed User
            • Feb 2001
            • 772

            #6
            Its a good tip this cos if you use TGP's and host on your own space the saving will soon add up.

            If you want to go all the way and remove the CR's too you can use an optimizer like this one.
            http://www.pcbit.com/htmlopt/download.shtml
            Stupid Spice

            Comment

            • Lord Assmore
              Confirmed User
              • Mar 2001
              • 588

              #7
              If you're completely anal about your BW yuo can go further and remove almost all quotation marks. Write <a href=index2.html> etc.. If you want to comply with the HTML standard, keep them when "strange" characters like '/' and '#' are involved, like bgcolor="#ffffff"

              However, The most BW reducing action is to do ALL text formatting thru CSS. Don't ever use tags like FONT and its attributes SIZE and FACE... And when applying the CSS rules, use the tree stucture of the HTML document.

              Lets say you have this code:
              <p>It's <s>very</s> useful to know CSS</p>
              and want 'very' in red-colored bold, use the rule
              P S {color:red; font-weight: bold}
              and not this constuction
              <s class=em>very</s>
              with the rule
              S.em {color:red; font-weight: bold}

              Finally, use externally linked style sheets, not inline, so that several pages can use the format that's already in the surfer's cashe.

              Every character that can be saved, is
              worth saving!

              [This message has been edited by Lord Assmore (edited 05-30-2001).]

              Comment

              • Paul Markham
                Too old to care
                • Jun 2001
                • 52942

                #8
                Lensman is a hypocrite


                The Revive Juicybone Now Coalition



                Blowout deal. 880 videos, 2,400 image sets, plus many RAW videos. $500.
                PM me for a deal. Skype Paulmarkham70

                Comment

                Working...