How to clean after using dojo?

I wrote an application using dojo that allocates a lot of data over its lifetime. Is there any way to guarantee that all memory was released when I finished?

Is there a similar method dojo.data.destroyAllStores()that I can use with a tag <body onunload>?

Thanks.

+3
source share
1 answer

You plan to use "onunload", so I think you want to free up memory when users leave the page.

Javascript , HTML-, , ( javascript GC).

, DOM javascript ( , DOM JS GC). .

DOM/JS.

0

Source: https://habr.com/ru/post/1702228/


All Articles