2

Using Knockout with the Underscore.js template engine...


My Two-Part Question:

  • Am I pursuing this problem correctly?
  • If so, can I throttle Underscore.js's templating engine (inside of the foreach which renders my ul DOM element?
Community
  • 1
  • 1
Jim G.
  • 14,600
  • 19
  • 100
  • 158

2 Answers2

0

I would use a virtual scrolling technique since you can't display the 2000+ items in the same time anyway.

Google for "knockout virtual scrolling" and you will find some interesting implementations.

edit: https://github.com/ericmbarnard/KoGrid this one looks fine

Guillaume86
  • 14,201
  • 4
  • 51
  • 51
0

If it helps anyone else, the template rendering was not my problem.

I fixed this issue be eliminating some expensive computed observables and favoring manual subscriptions.

Jim G.
  • 14,600
  • 19
  • 100
  • 158