# Rerendering on widget keyUp / keyDown?

**URL:** <https://meta.discourse.org/t/rerendering-on-widget-keyup-keydown/61461>\
**Category:** Development\
**Created:** [23. April 2017 um 14:02 UTC](https://meta.discourse.org/t/rerendering-on-widget-keyup-keydown/61461 "2017-04-23T14:02:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)\
**Post date:** [30. April 2017 um 22:36 UTC](https://meta.discourse.org/t/rerendering-on-widget-keyup-keydown/61461/4 "2017-04-30T22:36:18Z")

</div>

Okay, I can confirm this. With a small amount of posts loaded in the window, the rendering times are acceptable (40-60ms each for keyUp / keyDown)

However, as more posts are loaded into the window, the rendering time of the widget gradually increases:  
50 posts: ~50ms  
100 posts: ~70ms  
150 posts: ~100ms  
200 posts: ~130ms

etc.

There’s certainly a scaling issue here, but it doesn’t really manifest itself except that it’s rerendering on keyUp _and_ keyDown 😕 (I need both for separate events), meaning we get to that 300ms limit of human perception quite quickly.

---

_[View the full topic](https://meta.discourse.org/t/rerendering-on-widget-keyup-keydown/61461)._
