views:

213

answers:

2

Hey Guys, I was wondering if there is a "maximum" of data a javascript application can store. I guess this is handled by the browser and that each one has it's limitation? Am I guessing right? Wrong? If there isn't a limit, will a page file be created (wouldn't be very secure I guess).

+3  A: 

AFAIK, there is no upper limit, your script can basically use memory until the system runs out of memory (including swap). No upper limit doesn't mean you have to eat it all, users may not like it.

Pascal Thivent
Thanks, I was just wondering, I'm not planning on eating it all. Although I can imagine some scenarios where older machines would have some problems (jquery animations, table sorting etc etc)
Dänu
+1  A: 

There are no memory limitations for a Javascript program. Your script can hog all the RAM on your machine. However, it is not recommended to use up all the memory on users machine. If you are dealing with a lot of data I would suggest that you check out caching.

Secko