dimanche 1 février 2015

Limit re-rendering of page through two-way binding

I'm writing an editor for the blog-posts on my homepage.


I'm using Ember's textarea-helper to bind an attribute of my model to the editor. In this textarea I type a post in markdown. Below will the output be automatically rendered (like the Stackoverflow-editor does).


My markdown also contains media-embeds from pages like YouTube or Soundcloud which makes the re-rendering very slow.


How can I limit the re-rendering of the page to like only once every five seconds?





Aucun commentaire:

Enregistrer un commentaire