question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Resizing using the resize plugin causes a memory leak

See original GitHub issue

When 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. Screen Shot 2013-03-19 at 11 53 05 AM

When I don’t have it included it looks like this: Screen Shot 2013-03-19 at 11 59 03 AM

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:closed
  • Created 11 years ago
  • Reactions:1
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
PlippiePlopcommented, May 23, 2013

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

0reactions
maplemusecommented, Sep 18, 2013

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found