View Full Version : javascript compression
dlogic
03-29-2006, 04:20 PM
how was the richtext.js was compressed??? i tried various compresser but they just do a text compression.
how was the DD .js compressed to weird ascii char like compression
This is the key:
for(I=92;I>=0;)$=$.replace(eval("/"+String.fromCharCode(163+I)+"/g")
I don't recommend this form of compression, as the eval() calls will probably slow it down to a speed less than that at which it would parse the full-sized script.
dlogic
03-30-2006, 07:44 AM
i found a link which actually does that
http://hometown.aol.de/_ht_a/memtronic/
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.