You are here

Macro blog

Stylesheets Not Loading?

Submitted by John on Wed, 2010/01/06 - 9:21pm
31 Reasons to Hate Internet Explorer

Back in the day, all the CSS of the sites I built were in a single file: style.css. Things were easy. I built the site; I organized my styles; I knew where everything was.

Of course, then I discovered the power of leveraging an open-source community. And now there are innumerable developers writing the CSS for my websites. To keep things manageable, each module of functionality has its own stylesheet.

Unfortunately, once you get in the habit of having multiple stylesheets for your website, you will eventually run into a weird problem with Internet Explorer: some of your styles won’t apply. At all.

And if you have sufficient Google-fu, you’ll eventually discover this is a little known bug: Internet Explorer will only load the first 31 stylesheets and will ignore the rest. And this isn’t even limited to our usual suspect, IE6. All versions of IE have this limitation.

The Full Problem
and why I was insane enough to load 993 stylesheets on one page

Buy me a beer!

Submitted by John on Fri, 2009/06/12 - 8:32pm

Please rate and vote for my “I’m coming to DrupalCon Paris video avalanche” response. A free Drupalcon Paris ticket means more beer money. Daddy needs beer! So give me some lovin’, Drupal community!

Did I mention I rap about Drupal in the video? So go watch the “John Albin Wilkins” one and vote for me! :-D (See the detailed voting instructions below.)

Also, I’m behind in the polls right now! Help!

Die, phptemplate_ Prefix, Die!

Submitted by John on Tue, 2009/05/12 - 7:56pm

Ok, I mentioned this in twitter a few weeks ago, I created an issue about it in D7’s issue queue, and there are 2 small print notes in the D6 theme guide, but I don’t think my message was visible enough. So let me just say for the record (again)…

Never, never, ever, ever use phptemplate_ as the prefix for your theme’s preprocess functions. Don’t do it! phptemplate_ prefix should talk to the hand! Expunge it from your memory. It’s an ex-prefix. Seriously, cut it out! So, let me re-phrase:

Every time you use phptemplate_ prefix,
God adds a pointless issue to Drupal’s issue queue.

Please, think of the issue queue!

Pages

Subscribe to RSS - Macro blog