Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In my personal experiments, I ended up using document fragments. I wasn't doing FRP, just classic MVC, but a view (which was a JavaScript object) had a reference to the DOM elements it was responsible for. If it needed to replace them, it created a document fragment, did anything that needed to be done in there (including having children redraw) and then swapped out that fragment. This gave very nice performance.


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

Search: