How much memory are you talking about? How long is the page open? Most
browsers do a really good job of garbage collection. Using mootools helps
that even more. You might want to take a look at premature optimization, it
has been the death of many projects.


On Tue, Dec 9, 2008 at 6:20 PM, Xeoncross <[EMAIL PROTECTED]> wrote:

>
> Well, that is a good idea - however, it wastes ram even more than
> what I listed above. Each time a page was loaded that JS file would be
> re-added as an asset and the old JS variables would problem still
> persist in
> memory.
>
> On Dec 8, 11:32 am, aowie <[EMAIL PROTECTED]> wrote:
> > One way I have seen do a good job with this, is to split up the js
> > related to each ajax call into their own files. So if you have an AJAX
> > call for login & one for registration, then you have a complimentary
> > js for each of those. You can then load the js how you want (I use
> > Assets library) after the AJAX call is completed. The new DOM will be
> > loaded and then the external js fires and recognizes the newly added
> > DOM.
>

Reply via email to