TinyChan

New reply in topic: Random discussions thread

You are not recognized as the original poster of this topic.

:

You are required to fill in a captcha for your first 5 posts. Sorry, but this is required to stop people from posting while drunk. Please be responsible and don't drink and post!
If you receive this often, consider not clearing your cookies.

Please familiarise yourself with the rules and markup syntax before posting.


Replying to FuckAlms !vX8K53rFBI

@656,038
I wonder, could you use this to deliver the content of a static webpage in a compressed format without having to configure the server for gzip transfer encoding? Like put the script in the <head> and then in the body just call the script to decode a linked image and display the output.
Like I've got a page that's ~30kb but it's just tables and sprites so it compresses well. The script itself is a little over 4kb and this zip of the page and sprite is 2.35kb when encoded, so theoretically the total data package would be less than 7kb. Hard to be sure though, as the sprite sheet is currently external rather than base64 encoded because I don't know how to assign sprite coordinates to base64 data without inserting the entire file for every set of coordinates since there's no filename to use as a reference.