Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2410 from vogdb/issue-2410
Browse files Browse the repository at this point in the history
Fix lazyload memory leak
  • Loading branch information
vogdb authored Nov 23, 2016
2 parents 010c646 + ed66acb commit ca8193a
Show file tree
Hide file tree
Showing 5 changed files with 385 additions and 245 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
$.fn.lazyImageSetup = function(lazyLoadOptions) {
return this.each(function() {
var options = _.defaults(lazyLoadOptions || {}, {
threshold: 600,
failure_limit: 10
offset: 600,
attribute: 'original'
});
var $this = $(this);
if ($this.closest('.scrollable').length) {
options.container = $this.closest('.scrollable');
}
$this.find('img.lazy').lazyload(options);
$this.find('img.lazy').unveil(options);
});
};

Expand Down
242 changes: 0 additions & 242 deletions client-vendor/after-body/jquery.lazyload/jquery.lazyload.js

This file was deleted.

5 changes: 5 additions & 0 deletions client-vendor/after-body/jquery.unveil2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Currently we use a custom fork https://github.com/vogdb/unveil2. As soon as out changes are merged please remove this file.
Our changes are:
- https://github.com/nabble/unveil2/pull/27
- https://github.com/nabble/unveil2/pull/28
- https://github.com/nabble/unveil2/pull/30
Loading

0 comments on commit ca8193a

Please sign in to comment.