JavaScript Size Problem

admin

Administrator
Staff member
Hello,

I抎 appreciate any help anyone can offer on the following problem.

I have a JavaScript function that loads a city combo box with all cities in the state chosen in an associated state combo box. The function is about 825KB, and downloads very slowly. I抳e tried some of the publicly available JavaScript compressors, which only resulted in a small percentage file size reduction. I抳e also tried a JavaScript compiler, which did achieve a very high space reduction percentage, but unfortunately takes a long time to unpack once downloaded.

Does anyone have any ideas? I抦 open to any alternative. Perhaps there are some very good JavaScript compressors or compilers that I抦 unaware of. I抎 appreciate any advice in this area.

Also, does anyone know if it抯 possible to run machine code from MSIE? In theory, I could convert the JavaScript function to fully compiled machine code (such as Visual Basic). I don抰 know if IE could run such code. I抎 also appreciate any comments relative to this idea.

Thanks very much, Stewart Engelman
 
Back
Top