     @findViewForObject(object)?.reRender()
 
   didRender: ->
-    if @renderCount % GC_FREQUENCY is 0
-      defer => @garbageCollectCachedViews()
+    defer => @garbageCollectCachedViews()
 
   focus: ->
     @element.focus()

{defer} = Trix.Helpers

class Trix.DocumentView extends Trix.ObjectView
  GC_FREQUENCY = 50

  constructor: ->
    super
    @document = @object
    {@element} = @options
    @renderCount = 0

  render: ->
    @childViews = []

        blockView = @findOrCreateCachedChildView(Trix.BlockView, block, {blockIndex})
        @element.appendChild(blockView.render())

    @didRender()
    @element

