arrays - Javascript Efficiency with Constants passed as Parameters? -


i have general javascript question. i'll give scenario , ask question.

scenario

i making table (currently) over 3000 rows, , growing 5-10 every day. using javascript plugin style table , add useful functionality. takes 15 seconds load page, after runs smoothly (sorting, paging, etc.). slow initial load, though. plugin offers way less dom parsing, pass array of information placed inside table, intrigued by. however, want make fast possible, because there still array of 3000 rows (each 11 columns of, on average, 10 characters).

question

would faster use javascript const store giant array? specifically, javascript know not put const on stack when passed parameter?

furthermore, javascript handle? should dismiss idea , start ajax (which mean slower functionality faster pageload)?

thanks!

because interaction fast once page loaded guess biggest bottleneck transfering data on wire.

i send json (compressed gzip) lightweight , fast load.

i think styling should done css not js. if want best ux initialize table less (1-200 elements), , deal rest. better user if show right @ beginning.

storing array can't problem because gc clear up.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -