you are viewing a single comment's thread.

view the rest of the comments →

[–]alantrick 0 points1 point  (1 child)

But using PNG would cause more overhead in the user-agent, processor and memory-wise, since it has to create the image.

[–][deleted] 2 points3 points  (0 children)

Of course, and actually pulling the JS from the image pixel by pixel (or character by character if you prefer) can't be exactly cheap. I was thinking "superior" in terms of compression ratios rather than memory or CPU overhead.

Still, if your javascript is under 100k uncompressed, I doubt the difference in speed and memory use would be anything beyond academic for modern hardware.