Results 1 to 3 of 3

Thread: javascript compression

  1. #1
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default javascript compression

    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

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    This is the key:
    Code:
    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i found a link which actually does that

    http://hometown.aol.de/_ht_a/memtronic/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •