Is there any way to make a large files (e.g. Flash, Image) into smaller
one using Javascript for faster loading?
Thanks in advance.
Ummm...if you are talking about JavaScript running *IN THE BROWSER* then
what's the point???? In order to compress the file, the server would *STILL*
have to send the uncompressed file to the browser. So then you compress the
data, send it to Flash, which would have to uncompress the data. Since you
didn't save any time in sending the data from the server to the browser, all
you would do would be to make things *SLOWER*!!
Anyway, the answer is pretty much "NO." First of all, the browser wouldn't
understand a compressed image file and Flash wouldn't understand a compressed
".swf" file. Each *NEEDS* the file in the original format.
But secondly, both of those formats are pretty well compressed already. Go
ahead, try it some time. Grab a ".jpg" file and stuff it into a ".zip"
archive using Windows Explorer on your own machine. There's a real good
chance that the file actually gets *LARGER* and an excellent chance that in
any case it will only be 1% to 2% smaller.
So I think you are looking at an exercise in futility.