Facebook uses browser-specific body classes

Use browser-specific body classes to avoid extra stylesheets or invalid CSS

Having recently worked on a website for which page load and performance was really important, I’ve found myself viewing the source code for more and more sites. Taking a look at Facebook recently revealed that they use browser-specific classes on the body element, so that if you’re browsing with Safari 4, you’ll see something like: Continue reading “Facebook uses browser-specific body classes”