Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-04-2009, 09:22 AM   PM User | #1
padidar
New to the CF scene

 
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
padidar is an unknown quantity at this point
what's happened with this javaScript code

Hi,
I just downloaded 2 Mootools.js files. both of them are version 1.1 and they do the same. but I wonder why first one is 72 KB and second one is 34 KB.

I want to know what's happen with the second file with less size, Is is compressed, Gziped, encrypted or something else and how can i do the reverse. I mean how can i convert a code like the one with 34 KB to the source file.

I attached both files and I really appreciate if some one can help me.
Attached Files
File Type: zip Mootools.zip (35.6 KB, 88 views)
padidar is offline   Reply With Quote
Old 01-04-2009, 09:32 AM   PM User | #2
itsallkizza
Senior Coder

 
Join Date: Oct 2008
Location: Long Beach
Posts: 1,196
Thanks: 36
Thanked 164 Times in 164 Posts
itsallkizza will become famous soon enough
They're both compressed to some degree although the second one has been both fully compressed and obfuscated while the first one seems to be extra-space and randomly new-line compressed.

This site here is a favorite of mine and does a good job on your first js file: http://elfz.laacz.lv/beautify/

However, once a script file is obfuscated (variable and object names reduced), it's near-impossible to make sense of it unless you know specifically what's going on (or you have hours of spare time) and so your second JS file is a bit more difficult to decipher.
__________________
Feel free to e-mail me if I forget to respond ;)
ohsosexybrit@gmail.com
itsallkizza is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:25 AM.


Advertisement
Log in to turn off these ads.