News for hackers. Stuff that matters.

mckamey

Re:How a new HTML element will make the Web faster on Wednesday September 03, 2014 @01:20PM (#8264127)
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.
That's a creative solution. Too bad it only works for IE.
Use CssUserAgent and be done with it.
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.
Interesting. As in a toggle to add/strip the classes back off again?