[theme-reviewers] Base64 Used to Encode Transparent Images?!?

Otto otto at ottodestruct.com
Tue Nov 16 16:28:42 UTC 2010


On Tue, Nov 16, 2010 at 10:24 AM, Chip Bennett <chip at chipbennett.net> wrote:
> So, essentially, the image itself is embedded in the CSS file?
> I'm still uneasy about it, but that could be due to lack of understanding.
> And I still question whether it's actually necessary.

Could he put the image file in a separate file and then make an http
link to it there instead? Sure.
Is including the data inline like this faster? Yes, it's much, much faster.

For small images (these are 1x1 pixel PNG images), this is WAY faster
than including the image separately URL and incurring the overhead of
an extra HTTP request.

Necessary? No.
Understandable and faster and better and safe and actually the correct
way to do it? Yes.

I give this a total thumbs up and an "okay". There's nothing wrong
here of any sort.

-Otto


More information about the theme-reviewers mailing list