{"issue":{"user":{"id":81229,"login":"pisi","url":"https://api.github.com/users/pisi","gravatar_id":"1e99872a043358830bf6922893e50b12","avatar_url":"https://secure.gravatar.com/avatar/1e99872a043358830bf6922893e50b12?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":{"creator":{"id":81229,"login":"pisi","url":"https://api.github.com/users/pisi","gravatar_id":"1e99872a043358830bf6922893e50b12","avatar_url":"https://secure.gravatar.com/avatar/1e99872a043358830bf6922893e50b12?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"open_issues":7,"created_at":"2011-04-11T19:47:59Z","title":"1.2","state":"open","due_on":null,"closed_issues":14,"description":"","number":4,"url":"https://api.github.com/repos/pisi/Reel/milestones/4"},"created_at":"2011-12-21T16:14:45Z","title":"Too tight dependency on `style`/`link` tags in the `head`","state":"open","updated_at":"2011-12-21T16:14:45Z","labels":[],"id":2626549,"html_url":"https://github.com/pisi/Reel/issues/89","closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Originaly reported by @lopsided in issue #84:\r\n\r\n> There were two problems with my test page. The first (which fixes the code in the previous comment) was to add\r\n> \r\n> < style type=\"text/css\" > < /style >\r\n>\r\n> to the head. On my actual site I did not need this for some reason. Maybe because I have stylesheet links then IE has already fired up the CSS handlers...?\r\n\r\nIt turned out it is a bug, which @lopsided had tapped. Reel keeps some its styling rules in a dynamically injected stylesheet in the head. The `<style>` is injected [here](/pisi/Reel/blob/development/jquery.reel.js#L332) before all other styles to allow easy CSS overide by user without the `!important` enforcement. And I foolishly presumed, that all pages have some stylesheet in one way or another already. I think, I'd rather change the already-awkward:\r\n\r\n```js\r\n... .insertBefore($('head link, head style').first());\r\n```\r\n\r\nand simply prepend the stylesheet to the `<head>` not caring about what's inside:\r\n\r\n```js\r\n... .prependTo('head');\r\n```\r\n\r\nIt would be much cleaner then, but at the same time far too prominent when viewing the source code. But I guess that's the price it has to pay to sit below all other styles no matter what ;)","number":89,"url":"https://api.github.com/repos/pisi/Reel/issues/89","comments":0,"assignee":{"id":81229,"login":"pisi","url":"https://api.github.com/users/pisi","gravatar_id":"1e99872a043358830bf6922893e50b12","avatar_url":"https://secure.gravatar.com/avatar/1e99872a043358830bf6922893e50b12?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"}},"action":"opened"}