     @inner.html contentHtml
   
   setupLivePreview: =>
-    @field.on 'keyup', @render
+    # Wait before firing the event constantly (a way to throttle)
+    @lazyRender = _.debounce(@render, 800)
+    @field.on 'keyup', @lazyRender
 
   setupCloseButton: ->
     @el.append $('<a class="close-button button small">X</a>')

Spine       = require('spine/core')
$           = Spine.$
Showdown    = require('showdown')


class PreviewUI extends Spine.Controller

  close: (e) =>
    e?.preventDefault()
    @parentForm.removeClass('preview-mode')
    @field.off 'keyup', @lazyRender
    @release()


