@Hosch250 No. I'm writting a library to send Javascript code inside a PNG image. And I have 'encoders' used to crush the size of the code. One of them is a static dictionary that has common stuff like 'function(){}', which then replaces it with \xFF\x<position on the dictionary>
Which means that function(){} would be sent as 2 color values in an image
If you had the machine power, you could look for repeating patterns in the text and generate 254 entries (if there were 254+ patterns of at least 2 characters) based on the top patterns.
@IsmaelMiguel By the way, Ismael, have you tried just zipping the data into your image, and seeing what size you get for jQuery then? (In other words, even though it is interesting to reinvent the wheel from time to time, is it worth it size wize? Or is it better to use a well known zip engine?)
@IsmaelMiguel That big? That's too big. I made a zip implementation in C which was a lot smaller, and which could be implemented in javascript (I think) for a lot less than 30-90kb. It would be interesting though to see how much standard zipping would compress the jQuery. You don't have any numbers on it?
@IsmaelMiguel If the deflate lib takes 30-90 kb, you are true that it isn't worth it.
That is, it isn't worth it to use those libraries...
Using a zip library, your net gain would be 84KB kb to 31.4KB + zip library. So implementing a zipper in less than 30 KB would be more space efficient...