From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (unknown [IPv6:2602:47:2243:ea00:12bf:48ff:fe7c:5584]) by hurricane.the-brannons.com (Postfix) with ESMTPSA id EFE8877BDD for ; Tue, 15 Apr 2014 08:18:59 -0700 (PDT) From: Chris Brannon To: Edbrowse-dev@lists.the-brannons.com References: <20140315103711.eklhad@comcast.net> Date: Tue, 15 Apr 2014 08:18:49 -0700 In-Reply-To: <20140315103711.eklhad@comcast.net> (Karl Dahlke's message of "Tue, 15 Apr 2014 10:37:11 +0000") Message-ID: <87a9bmaaee.fsf@mushroom.PK5001Z> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Edbrowse-dev] js befuddle X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2014 15:19:00 -0000 Karl Dahlke writes: > called js_befuddle(), that strips the whitespace and comments It's called a JS minifier, and they're quite common. When I worked at Google, we used something called Closure, which compiles JS into "compact, optimized code". Part of my work there involved writing the occasional JavaScript. I'd write nice readable JavaScript, and Closure would compile it into the inscrutable dog vomit of which you speak. Minification is part of that compilation process. I'm not spilling any secrets, as Closure is available to the general public. -- Chris