This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Beginning Object Oriented javascript' question- Handle Memory leaks in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Beginning Object Oriented javascript Watch "Beginning Object Oriented javascript New topic
Author

Beginning Object Oriented javascript' question- Handle Memory leaks in javascript

pinky suresh
Greenhorn

Joined: Jul 21, 2008
Posts: 22
Hi,

I was reading all the questions related to 'Beginning Object Oriented javascript' book and the following question stike my mind.

Since javascript or any language supports design patterns, I guess there will be some mechanism to avoid memory leaks also.what to we have to avoid memory leaks in javascript?

If i am using javascript in my code and my application becomes slow, what could be the reasons/places that i can check in my js code?
[ August 25, 2008: Message edited by: pinky suresh ]
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

having huge dynamically created javascript arrays make the web applications run very slower. I have experienced this in some applications.And creating lot of objects (text feilds etc...) in the page dynamically also cause the web applications run slower (may be browser's capability of handling more objects).


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
wood burning stoves
 
subject: Beginning Object Oriented javascript' question- Handle Memory leaks in javascript
 
Similar Threads
Java Scrict faq
Do I need to close an audio clip?
Cleaning up memory used by javascript objects
Does Java have buffer overflows and memory leaks?
Use of Java