Avoid re-rendering images and other stuff from backbone views

后端 未结 2 1875
梦谈多话
梦谈多话 2021-02-10 10:13

when I rerender a backbone view, what is a good way to skip re-rendering things like images and google maps? My photo and map views tend to flicker really bad every time the vi

2条回答
  •  不知归路
    2021-02-10 10:33

    To get the best result you really don't want to re-render the HTML that contains your media so I would recommend using more targetted views for the content that changes so you don't need to re-render the views with content that doesn't.

提交回复
热议问题