Imported on Aug 17, 2009
Well… the png fix you’ve most likely never heard of – DD_belatedPNG. I was introduced to this beauty via one of the Ruby on Rails developers at Oakley today @MrJoshua while battling the performance shortcomings of the IE7 JS Library, most of you probably know. The problem we were running into was that we just had to many png’s on the page. IE7 was doing the best it could, but using regular expressions to locate all possible transparent png’s out of over 5,000 lines of code really bogged down the load speed. The beauty of DD fix is that you indicate exactly what elements need to be handled from within a separate script block. Now I’m the first in line to bark at anyone stuffing excess markup into their pages. But seeing as though this script is used within an conditional and the rest of the pages markup is free of any “extra” code, I feel good about it. The DD solution is convenient in that you can use multiple css selectors to target your png fixed elements. Here’s an example of what a basic implementation might look like.
The minimalism of the IE7 solution, on top of its ability to force IE6 and 7 to behave as modern browsers is what attracted me initially. And I plan on continuing to use it in the future. I’d never be able to give up the luxury of using modern CSS selectors in IE6. But for pure transparent png fixes, I think I’ve found my new savior. I highly recommend you check it out, especially for png heavy projects.
Loading comments...