Better HN
topnewbestaskshowjobs
Log inSign up

mckamey

20 karma · joined Sep 23, 2010 (16y ago) · 6 submissions

Submissions

comment 12y ago · link · parent

JsonML is pretty efficient when auto-generated from HTML source. I use it as an intermediate form for client side templates ( http://duelengine.org ) but I don't write it by hand. Its regularity makes it a perfect candidate for output from a parser/compiler.

comment 15y ago · link · parent

That's a creative solution. Too bad it only works for IE.

comment 15y ago · link · parent

Use CssUserAgent and be done with it.

comment 15y ago · link · parent

Fair enough but CssUserAgent is a far lighter solution than Modernizr. I find that 99.9% of my CSS is the same per browser so I just need a slight tweak here or there which CssUserAgent does without a lot of overhead. Modernizr is about 5x the size and spends time manipulating lots of DOM objects to test features which might not even be used.

comment 15y ago · link · parent

Interesting. As in a toggle to add/strip the classes back off again?

6.

Avoid browser-specific CSS hacks with CssUserAgent (cssua.js)(cssuseragent.org ↗)

17 points · by mckamey · 15y ago · 9 comments