On Sunday, December 22, 2013 6:16:03 PM UTC-5, Rick Waldron wrote: > On Sun, Dec 22, 2013 at 8:57 AM, Prateek Jadhwani > > wrote: > > > > > Hello People, > > > > > > From the looks of the code, it seems that the js files LazyLoads the code > > > of the modules it needs. My question is does it get rid of the js files > > > that were LazyLoaded after its work is done, or does it stay in the memory. > > > Coz if it just keeps on adding every file, then it might cause some serious > > > performance problems. > > > > > > Can you elaborate? > > > > Rick
Hi Rick, What I meant to ask was When you load a js file via Lazy Loading, does it stay in the memory for ever, or it gets cleared up when the object that was required from that file is deleted in garbage collection. I have no idea how Lazy Loading works. So extremely sorry for my noob questions. I just know that Lazy Loading loads the files on demand. So rather than loading the file in the beginning of an app, with the help of Lazy Loading, it can be called when it is required. Thanks _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
