Commit graph

9 commits

Author SHA1 Message Date
Sanad Liaquat
099613f412 Add qa element 2019-01-18 19:12:00 +05:00
Lukas Eipert
ab83c1e419
Use intersectionRatio to determine intersection
Some older browsers do not ship with isIntersecting, while they already
have IntersectionObserver support. We make use of `intersectionRatio`
now to fix the Lazy Loader for those browsers.
2018-11-26 14:29:34 +01:00
Luke Bennett
1877eb49c0 Attempt to fix lazy loader spec transient failure 2018-11-26 08:57:21 +00:00
Lukas Eipert
4552a9f9fb
Improve performance of LazyLoader by using IntersectionObserver
Every browser which supports IntersectionObserver will now use it over
observing scroll and resize events. Older browsers without support fall
back on the previous behavior.

Additionally the MutationObserver can be enabled and disabled manually
via the helper method `startContentObserver` and `stopContentObserver`.
This might prove useful on pages where we manipulate the DOM
extensively.
2018-10-01 15:42:19 +02:00
Tim Zallmann
8daf9db68f Porting MR Vue Memory Fixes to current master 2018-08-08 02:50:01 +00:00
Tim Zallmann
fac4f50cf6 Send resize parameters for avatars 2018-08-07 06:04:33 +00:00
gfyoung
bce890820f Enable no-restricted-globals in JS files 2018-06-15 15:58:27 +00:00
Phil Hughes
1f60cd8cd7
Increase lazy loader performance
This stops the checkElementsInView method from running when there aren't any lazy load images on the page. By calling this method we are causing an unnecessary reflow which on large pages is a massive performance issue
2017-10-31 17:18:09 +00:00
Tim Zallmann
52b8a0db68 Resolve "Lazy load images on the Frontend" 2017-07-24 17:36:52 +00:00