The demise of CSS hacks, something which has been covered elsewhere to no end, definitely a good thing, but not what I’m covering here - not directly anyway. I’ve been wondering if we can take advantage of this new age of “hack segregation”.
I don’t think users of compliant browsers should be punished by downloading extraneous scripts, loading events into the queue and then spending time evaluating code that doesn’t even apply to them.
I’m proposing that we devote a section of the page
head tag to Internet Explorer, that’s simply a conditional comment section that contains any style sheets and script blocks that only apply to IE.
Example 1 (what we are doing)
Example 2 (what we could be doing)