Obfuscated javascript? Seriously?

Recommend this page to a friend!

      Continuous Vertical Scroll  >  All threads  >  Obfuscated javascript? Seriously?  >  (Un) Subscribe thread alerts  
Subject:Obfuscated javascript? Seriously?
Summary:Package rating comment
Messages:4
Author:Rolf
Date:2014-01-27 13:40:19
Update:2014-01-28 18:05:16
 

Rolf rated this package as follows:

Utility: Not sure
Consistency: Insufficient
Documentation: Insufficient

  1. Obfuscated javascript? Seriously?   Reply   Report abuse  
Picture of Rolf Rolf - 2014-01-27 13:40:19
Obfuscated javascript? Seriously?

  2. Re: Obfuscated javascript? Seriously?   Reply   Report abuse  
Picture of Stephen Chapman Stephen Chapman - 2014-01-27 18:04:43 - In reply to message 1 from Rolf
It isn't obfuscated. It is plain JavaScript.

  3. Re: Obfuscated javascript? Seriously?   Reply   Report abuse  
Picture of Rolf Rolf - 2014-01-28 10:01:15 - In reply to message 2 from Stephen Chapman
... but it's all on the same line...?
jsclasses.org/browse/file/1559.html

  4. Re: Obfuscated javascript? Seriously?   Reply   Report abuse  
Picture of Stephen Chapman Stephen Chapman - 2014-01-28 18:05:16 - In reply to message 3 from Rolf
That makes the script smaller and faster loading.

Since it is designed so that you don't need to alter anything in the script only a minified version is needed. Just attach it to the bottom of the web page and any element in the page with the right class attached is automatically converted.

Anyway you can easily get the script back to a more readable format using any JavaScript formatter. It just has the line feeds and indentation removed.