ted serbinski – entrepreneur & web architect
  • thoughts
  • about
  • contact



Popular content

  • Find free wifi easily with iStumbler
  • Blueprint Drupal Theme Released
  • Blog Redesign and Drupal "Spring Theme" Released
  • OpenDNS
  • The Paulding Light
  • Top Tier Gasoline
  • SimpleFeed
  • Website Crashes IE8 Browser with sysfader.exe Exception
  • Songbird
  • SimpleMenu 4.0 released
more

Recent comments

  • Unfortunately this method
    2 weeks 1 day ago
  • I’m using this method to sort
    7 weeks 32 min ago
  • I was interested in reading
    8 weeks 5 days ago
  • Ah yes this code is a bit out
    12 weeks 2 days ago
  • After using the original code
    12 weeks 2 days ago
more

Topic “css”

Website Crashes IE8 Browser with sysfader.exe Exception

So here’s what may be a crazy new IE8 CSS bug that can be triggered under the right circumstances. At MothersClick we started to get a few bug reports about “my browser crashing” when viewing the site. As hard as we could try, we couldn’t get the site to crash any of the browsers we tried. Then with a brand new, clean install of IE8, Nick Robillard was able to get the site to crash and we finally had a reproducible crash on our hands.

posted 11 Nov 2009
  • css
  • ie8
  • Add new comment
  • Read more

Drupal Behavior to Fix IE6 CSS Background Image Flickering

When the new myLifetime community launched we wanted to focus on performance, and one trick was to minimize HTTP requests by using the CSS sprites technique. For a great run down of this technique and examples of other major sites using this, check out this resource on Smashing Magazine.

Double checking this implementation with YSlow! everything was working great.

Well almost. Then we tried IE6. I hate IE6.

Then I discovered this excellent post detailing IE6 and its BackgroundImageCache usage.

After trying that JS trick, we noticed the page was significantly faster & smoother in IE6. With heavy CSS sprite usage this was a necessary fix. And with future sites in the works with this same technique, seems like a reoccurring fix.

To Drupal-ize & jQuery-ize this fix for resuability, I wrote this simple behavior below that works with Drupal 6. You can see in action on the myLifetime community.

  1. /**
  2.  * Fix flickering background images in IE.
  3.  */
  4. Drupal.behaviors.fixIEFlickr = function() {
  5.   if (jQuery.browser.msie) {
  6.     try {
  7.       document.execCommand('BackgroundImageCache', false, true);
  8.     } catch(err) {}
  9.   }
  10. };

May this code save you a few hours/days of head banging!

posted 11 May 2009
  • css
  • drupal
  • ie6
  • jquery
  • 5 comments

Speeding up CSS and JS in Drupal

Whoohoo! My JS aggregation patch has finally made it into core to join my other CSS preprocessor patch :-)

With both of those in, is there anything else we can do to still improve the speed and loading time of CSS and JS in Drupal?

You betcha! The next and final phase is to now gzip these aggregated files and the issue is ready, just needs an actual patch for core now.

With 4 more weeks, I hope we can get this final phase in.

posted 1 Jun 2007
  • css
  • drupal
  • gzipping
  • js
  • performance
  • Add new comment
  • Read more
Code examples and downloadable zip files of code are licensed under a Creative Commons License.
All other content, unless where noted, ©2010 Theodore Serbinski. All Rights Reserved.