Resizing using the resize plugin causes a memory leak
See original GitHub issueWhen I constantly resize the window with the resize plugin, the resizing eventually delays and according to the chrome memory usage it appears to spike. This is particularly a problem when applied with jquery ui tabs (or other modules that hide/show) as changing tabs triggers the resize event.
When I don’t have it included it looks like this:
I’m using the following plugin version
/* Inline dependency:
* jQuery resize event - v1.1 - 3/14/2010
* http://benalman.com/projects/jquery-resize-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
Issue Analytics
- State:
- Created 11 years ago
- Reactions:1
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Memory Leak when Resizing Image before saving it to server ...
I would like to know, if there is still some space to save some more memory while resizing Image. As I have stated...
Read more >Problem resizing anything over 3500px - WordPress.org
This plugin is not resizing any images that are bigger than 3500px. I am getting the following error message: “Imsanity was unable to...
Read more >Changelog | Docs - TinyMCE
Fixed some minor memory leaks that prevented garbage collection for editor instances. Fixed resizing a responsive table not working when using the column...
Read more >Element Resizing in Angular with ResizeObserver
This web development tutorial will cover how to import and work with the ResizeObserver within your Angular applications.
Read more >How To Process Images in Node.js With Sharp - DigitalOcean
Now that you can resize an image, next you'll convert the resized image format from png to jpeg , compress the image, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Why is it still depending on a third party resize plugin?
You can replace the resize minfied source in the flot.resize. This one below prevents event bubbling. It also fixed the "r.w = o !== c ? o : q.width(); " error some people get: https://github.com/garryyao/jquery-resize/blob/124e3a036937849210e64bfd0fbeb4d82bfc854d/jquery.ba-resize.js
Part of the problem is that this plugin can trigger repaint, which can expose memory leaks in other plugins. But since it was adding resize that exposed the leak, that’s where it gets reported.