4 ms·
JQuery also fixes the memory leaks if you remember to call .empty() or .remove() on any dynamically created elements on unLoad(). It nulls out all event handle
by nostrademons 19y ago
JQuery also fixes the memory leaks if you remember to call .empty() or .remove() on any dynamically created elements on unLoad(). It nulls out all event handlers and DOM references, recursively, breaking the cycles that make IE hang onto memory.
Also, plugins use $.data rather than directly attaching information to DOM elements, which was added to fix memory leak problems.