Is it possible to cache the final html client-side so that navigating back to a route doesn't redraw the content?
The content is drawn using a model (which is not reloaded the second time) and one of the helpers (ember-masonry-grid
) re-orders the content using jquery.
Once this is done, I would like to keep the html as it was drawn the first time. But it is redrawn every time I visit, adding another second.
If I would do everything manually, I would detach the content element from the DOM without destroying it when I move away, and re-attach it when I move back, which is instant.
Aucun commentaire:
Enregistrer un commentaire