bminer / node-blade

Blade - HTML Template Compiler, inspired by Jade & Haml
Other
320 stars 28 forks source link

i have about 2k table rows render at the same time, browser freeze. #70

Closed crapthings closed 12 years ago

crapthings commented 12 years ago

is this a template engine problem or meteor render issue ?

use meteor.ui.render with meteor.ui.listChunk

bminer commented 12 years ago

Could you please attach your blade template? Also, what browser are you using? What happens if you render fewer rows?

crapthings commented 12 years ago

Chrome latest

Render about 200 rows are okay

Code is just normal listChunk with chunk template

crapthings commented 12 years ago
!=
    Meteor.ui.listChunk(Employees.find(), __.chunk.employees, __.chunk.last)

and something like below in app.js

Meteor.ui.render( Template.employees );
bminer commented 12 years ago

Try increasing the number of rows until you begin to notice a limit. Once the browser starts to freeze up, try to figure out why. Is the browser using a lot of memory, a lot of CPU, etc? More than likely, you will need to render 100 rows or so, then implementation some sort of pagination feature.

I'm closing this issue for now, but please feel free to post back here.