4 ms·
> I look forward to a time where JavaScript performance is as "free" as CSS, but we are no where near it. Actually, it seems the converse is true. Ray Cromwell
by justinmk 12y ago
> I look forward to a time where JavaScript performance is as "free" as CSS, but we are no where near it.
Actually, it seems the converse is true. Ray Cromwell recently commented[1] regarding Google Inbox:
> It's nothing to do with JS code execution, the problem is in the rendering engine, essentially too much repainting and rendering stalls, and too little GPU accelerated animation paths.
> Javascript is in a very good state these days in terms of cross browser compatibility, and while CSS support has converged between browsers in terms of correctness, CSS support has not converged on performance between browsers. Safari, Chrome Firefox, and IE have wildly different animation performance hazards on the same markup and debugging this often isn't trivial, for example, finding out that the GPU is stalling on texture uploads deep inside of the render loop.
[1] https://news.ycombinator.com/item?id=8999716 https://news.ycombinator.com/item?id=8999716