Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript Listeners, are they held in memory?

I am building what I believe to be quite a large web application that uses Ajax calls and multiple "panes" within one html front-end.

The application will most likely run without a hitch on desktops but the app is also a paid service to be used on iPad.

My question is in regards to the way browsers use event listeners, since i use quite a large amount of them. Does the browser hold all of these in memory or just look for them as they are called?

like image 948
Deminetix Avatar asked Feb 15 '26 13:02

Deminetix


1 Answers

It depends of the JavaScript engine of each browser for example V8 can support up 512mb on 32-bit systems, and 1gb on 64-bit systems.

You can check for other browser, but to reach that amount with callbacks it's almost impossible or if you do you can probably find some way to optimize your application!

So i wouldn't worry about this issue if i were you

By the way the iPad JavaScript engine on Safari is Nitro which is way better than the one that runs over IE9 so if your app is running well on IE9 you will be fine on iPad!

http://javascript.crockford.com/performance.html

like image 199
Jerome Ansia Avatar answered Feb 17 '26 03:02

Jerome Ansia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!