Memory efficient javascript
Memory efficient javascript
Out of context: Reply #9
- Started
- Last post
- 9 Responses
- monolith0
deleting DOM elements sometimes still doesn't make GC release it from the memory causing a memory leak. The best approach, especially for mobile is to load in 1px image instead of the image you have and then delete. Forcing 1px image to replace the big one will automatically trigger the GC.