Commit graph

15 commits

Author SHA1 Message Date
GitLab Bot
6b3944a901 Add latest changes from gitlab-org/gitlab@master 2021-08-03 12:09:42 +00:00
GitLab Bot
b2e2c43b3c Add latest changes from gitlab-org/gitlab@master 2020-12-24 00:10:25 +00:00
GitLab Bot
c3b45354d7 Add latest changes from gitlab-org/gitlab@master 2020-07-09 09:09:27 +00:00
GitLab Bot
23ff717a29 Add latest changes from gitlab-org/gitlab@master 2020-06-10 09:08:35 +00:00
GitLab Bot
e33f87ac0f Add latest changes from gitlab-org/gitlab@master 2020-04-21 15:21:10 +00:00
GitLab Bot
80f61b4035 Add latest changes from gitlab-org/gitlab@master 2019-09-18 14:02:45 +00:00
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