On Dec 11, 10:45 am, aowie <[email protected]> wrote:
> Why not define a variable in the JS your loading? Then when you go to
> make the request again, before the JS is loaded, check for that
> variable's existence. If it is defined, dont reload the js, if it
> isnt, let the user continue on their merry way without constantly
> reloading the same JS files.


No the problem isn't that I keep re-loading a JS file - the problem
is
that a DOM element (I keep attaching a lot of objects too) is removed
every ajax request and a new (identical) version is added (sometimes).

So this means that everytime the new AJAX content comes in I have
to rescan for the element and reattach all this stuff to it. - So I
am
worried that after 10+ pages of this I will have a lot of wasted RAM.

Reply via email to