JavaScript comment stripper breaks websites

Discussion in 'other software & services' started by vasa1, Aug 22, 2011.

Thread Status:
Not open for further replies.
  1. vasa1

    vasa1 Registered Member

    Joined:
    May 1, 2010
    Posts:
    4,417
    http://www.theregister.co.uk/2011/08/19/tmobile_borks_web_pages/

    I found that interesting because the argument has been put forward that comments don't slow down things.

    So it appears that there are real-life circumstances in which comment-stripping does help. Never mind that the article cited deals with a botched attempt.

    I had asked elsewhere about the possible impact that "credits" and "licences" included in several freeware program files could have at least on start-up times and was given the impression that it was nothing to worry about.
     
  2. elapsed

    elapsed Registered Member

    Joined:
    Apr 5, 2004
    Posts:
    7,076

    Startup times? The reason they are doing this is to reduce the size of the script, and therefor to speed up the download and reduce network impact. It has nothing to do with the speed of processing the script after it's been downloaded.

    You wouldn't notice on a standard internet connection, and I'd wager the few KB saved is also pointless on a mobile connection also.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.