Sunday 22 May 2011

Quick post: png in IE7

After i lost the last hour and a half trying to figure out why my site was crawling to a halt and using 100% of a CPU(actually 25% as i'm using a quad core), i figured out the problem.

NEVER. EVER. use a background repeat with a .png image, it seems that using the .png repeat made the .png engine in IE7 render each repeated item individually, making a large transparent background a living hell for the CPU.

the best method to avoid it is not using a smaller image with repeat, and resizing the image to full size, or just use .gif, as it provide transparency, and also works on the old(and bad) IE6.

p.s.
i hate you Microsoft.