```coffeescript
templateName = 'commentList'
TemplateClass = Template[templateName]

TemplateClass.created = ->
  series = @data?.series
  unless series then throw new Error('No series ID provided for comment list.')
  @isEditing = new ReactiveVar(false)
  # Old subscriptions are retained if we need to view the same series later.
  Meteor.subscribe 'comments', series: series

TemplateClass.rendered = ->
  Collections.observe getCursor(), delayedScrollToBottom.bind(@, @)
  delayedScrollToBottom(@)

TemplateClass.helpers
  items: -> getCursor()
  hasItems: -> getCursor().count() > 0
  isEditing: -> getTemplate().isEditing.get()

TemplateClass.events
  'click a.login': -> Router.go('login')
  'focus .comment.form': (e, template) -> delayedScrollToBottom(template)

scrollToBottom = (template) ->
  template = getTemplate(template)
  $commentList = @$('.comment-list')
  $items = $('.items', $commentList)
  $innerItems = $('.inner-items', $items)
  $items.scrollTop $innerItems.height()

delayedScrollToBottom = _.debounce scrollToBottom, 300

getCursor = -> Comments.find series: getTemplate().data.series
getTemplate = (template) -> Templates.getNamedInstance(templateName, template)
```

Reduce wait time for scroll to bottom
user
```coffeescript
templateName = 'commentList'
TemplateClass = Template[templateName]

TemplateClass.created = ->
  series = @data?.series
  unless series then throw new Error('No series ID provided for comment list.')
  @isEditing = new ReactiveVar(false)
  # Old subscriptions are retained if we need to view the same series later.
  Meteor.subscribe 'comments', series: series

TemplateClass.rendered = ->
  Collections.observe getCursor(), delayedScrollToBottom.bind(@, @)
  delayedScrollToBottom(@)

TemplateClass.helpers
  items: -> getCursor()
  hasItems: -> getCursor().count() > 0
  isEditing: -> getTemplate().isEditing.get()

TemplateClass.events
  'click a.login': -> Router.go('login')
  'focus .comment.form': (e, template) -> delayedScrollToBottom(template)

scrollToBottom = (template) ->
  template = getTemplate(template)
  $commentList = @$('.comment-list')
  $items = $('.items', $commentList)
  $innerItems = $('.inner-items', $items)
  $items.scrollTop $innerItems.height()

delayedScrollToBottom = _.debounce scrollToBottom, 200

getCursor = -> Comments.find series: getTemplate().data.series
getTemplate = (template) -> Templates.getNamedInstance(templateName, template)
```
assistant