Hacker News new | past | comments | ask | show | jobs | submit login
UI Workers (groups.google.com)
94 points by robin_reala on Feb 23, 2015 | hide | past | favorite | 5 comments



I found this thread kind of hard to follow because I'm not familiar with the details of how a page renders but it seems that everything suggested its kind of complicated and a pain to work with.

What if we had an API that could just provide us with the contents of a div as a bitmap, and we replace the complex dom with a single canvas and do our own rendering while doing these smooth 60fps animations. When done we hide the canvas and show the real DOM again.

Err, I guess thats what those other guys are doing that we read about last week.


> What if we had an API that could just provide us with the contents of a div as a bitmap

Can't do that for security reasons: it would open the CSS :visited info leak. Pages could determine which other pages you've visited by inspecting the colors of visited links.


woah, crazy edge case. I guess you could render the page without the :visited style.

Thinking about it more though since I posted. I don't think anybody would use it the way I described, I think people would simply end up rendering everything to bitmaps, and manage their own layout and animation in the canvas.

I might try that for my next game.


Animations that use scroll positions is a great idea - I'd like to see that in CSS regardless of whether the other three suggestions go any further.


let's repeat css expression!




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: