3 ms·
This as 3 purposes, 1. show of some neat trick 2. hide code a. hide code on a 3rd party site b. hide code in an image that actually looks like an
by jdavid 16y ago
This as 3 purposes,
1. show of some neat trick
2. hide code
a. hide code on a 3rd party site
b. hide code in an image that actually looks like an image ( steganography ),
thus hiding parts of the code within several images.
for a really good time, hide some unique data on
one machine that acts as a key
3. save per file system space
i think gzip uses the same compression algorithm as png files so, to reuse this is silly. the browser supports gzip anyways
i saw this as part of a 10kapart competition, and maybe they were trying to make up the difference between the actual size of the bits used and the file system size. i think although this is interesting, but, it defeats the point of the 10k limit; which, was there to show what one could do without server side scripts, and I think a build script .... counts.
- sr3d 16y agoI did write to the 10kapart to ask about using this technique before working on the app. Their answer was: "As long as it works in the required browsers and it's 100% client-side you're welcome to use it in your app." So the build script ... doesn't count. As long as everything works in the browser, it's good. The end justifies the means :)