1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

HTML HTML Optimizers

Discussion in 'Web Development' started by navyfalcon, May 8, 2011.

  1. navyfalcon

    navyfalcon Well-Known Member Verified Member

    I was checking some HTML Optimizers. It seems that they remove the code lines (remove the white spaces) and compress by reducing the lines and making the code smaller but more difficult to read. Is this standard practice ?
    The reason for the inquiry is I want to optimize my code to make it faster loading. What is the standard practice of optimizing HTML code.
    -
    Thank You
    falcon
     
  2. ishkey

    ishkey Moderator, Logos, Sports Crests Staff Member Verified Member

    Back in the days of slow connections coders would take into account white space, minimize HTTP requests and shorthand properties but now it would depend on what type of purest you are.

    How fast do you pages load now and what gain can you achieve should be your question.

    Traveling down the road of white space removal means having a standard copy of your site for production and a compressed copy for uploading, thus maintaining both.

    Personally I try to adhere the best practices of coding standards, in terms of the standards laid out, not all work as describe to the benefit of speed so they are modified.

    Only you can answer the question by speed measurements to see if the gains outweigh the work and time involved.
     
  3. tomw

    tomw Member

    Most of the HTML pages currently in used are coded without much of the formatting statements. In fact, font tag has been deprecated, instead formatting is done mostly by including CSS style sheets; removing white spaces are not going to make much difference if it includes couple of images.
     
  4. navyfalcon

    navyfalcon Well-Known Member Verified Member

    Thank You Ishkey and Tomw

    Since I am using CSS and Tom said it doesn't make much difference, then I won't need a HTML optimizer. I checked some out and all they seemed to do was remove the line formatting (white spaces). Since Ishkey said we needed to maintain both, I don't think it is worth the trouble.
    Thank You for the information and explanation. It helps greatly.
    -
    falcon
     
  5. almedajohnson

    almedajohnson New Member

    it used to happens. HTML optimizer delete white spaces or extra spaces. If you want space then you need to adjust the properties and use the tags for the same.