Move the matchHeight call from lazy loading to image loading.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-09-16 20:53:16 -04:00
parent 89256bfb9a
commit e6eebe11a7
3 changed files with 6 additions and 3 deletions

View File

@@ -145,6 +145,8 @@
- Fix an egde case on the document indexing where an empty
node could be left behind.
- Improve the speed of the document indexing.
- Move the matchHeight call from lazy loading to image loading.
Reduces the chance of wrongly sized cards.
3.0.3 (2018-08-17)
==================

View File

@@ -361,6 +361,8 @@ classes beyond the provide line chart.
- Fix an egde case on the document indexing where an empty
node could be left behind.
- Improve the speed of the document indexing.
- Move the matchHeight call from lazy loading to image loading.
Reduces the chance of wrongly sized cards.
Removals
--------

View File

@@ -45,6 +45,8 @@ class MayanImage {
$(this).fadeIn(300);
$(this).siblings('.spinner-container').remove();
$(this).removeClass('lazy-load pull-left');
clearTimeout(MayanImage.timer);
MayanImage.timer = setTimeout(MayanImage.timerFunction, 100);
});
$('.lazy-load-carousel').on('load', function() {
@@ -70,9 +72,6 @@ class MayanImage {
this.element.attr('src', this.element.attr('data-url'));
$.fn.matchHeight._maintainScroll = true;
clearTimeout(MayanImage.timer);
MayanImage.timer = setTimeout(MayanImage.timerFunction, 100);
};
}