Javascript string compression tutorial, including search and replace
12 August 2008
When I created my Writing Wisdom widget, which is available to embed in any blog or website, I spent some time working on string compression. Using a simple search and replace script that substitutes short symbols for frequently used character sequences, I was able to cut about 15% off my filesize. I've written a tutorial to explain Javascript string handling, including take-away scripts for search and replace and text compression in Javascript.