I am using backbone js. I have a screen with two pages. I have two options I can render both pages at same time and then hide/show based on selection. Other thing is rendering each page separately. Second approach looks better to me and if I am not wrong. In both cases browser will have to re-paint? Please correct me if I am wrong.
Bear Bibeault wrote:OK, next question then: do you really think there will be a user-discernable difference between the approaches?
What I'm getting at is that is it were my project, I would first strive for code clarity, and then if, and only if, a performance issue arises, start looking at different approaches.
Is there a demonstrable performance problem you are trying to solve?
Not really didn't have any issue till now. I am currently rendering instead of show/hide. I feel its clean and simple. Not sure if you agree with me. But other than that am I right that in both ways browser will re-paint?