walmartlabs/lumbar-loader — pull request #4 by syntacticx (2012-05-21 19:44:19+00:00)
Title: insert stylesheets in the head rather than body

All unit tests with this change pass, tested on android, iOS simulator and chrome, all work and no FOUC issues that I can observe.

document.head is supported on all mobile browsers and is known to work on:

Chrome 4
Firefox 4
IE 9
Opera 11
Safari 5

The polyfill is there for IE8 though it is not tested in that environment. This will break on documents without a HEAD, but I'm not sure if that's worth supporting.