Comments (12)
var elementOffset = this._element.nativeElement.getBoundingClientRect().top + (window.scrollY || window.pageYOffset);
works for me in IE
from ng-defer-load.
Hi @peterpeterparker & @vinayakpatil
Very sorry, somehow seem to have missed this!
The changes suggested seem reasonable, however I'm unable to test this atm.
@mzoellner might be a bit closer to this repo now than I am, what are your thoughts @mzoellner ?
Thank you,
Vamsi Vempati
from ng-defer-load.
Thx for the feedback @VamsiVempati
Actually I don't use this library anymore, therefore, when it comes to me, we can simply close this feature request.
from ng-defer-load.
Hi @vinayakpatil,
sorry for the delay here.
We are not very active with reviewing PRs for this package.
I am trying to fit it in during the next couple of days and get back to you.
from ng-defer-load.
Hi @vinayakpatil,
I did the regression test on our end and it looks all good.
Once you have updated the PR, I will merge it in.
from ng-defer-load.
I dont know... doesn't getBoundingClientRect()
cause a full relayout calculation in some browsers?
from ng-defer-load.
Hi @VamsiVempati , can you please check #37 and share your thoughts?
from ng-defer-load.
HI @VamsiVempati just following up on this one, thanks!
from ng-defer-load.
@mzoellner did you get a chance to review this? Thanks
from ng-defer-load.
I dont know... doesn't
getBoundingClientRect()
cause a full relayout calculation in some browsers?
According to https://gist.github.com/paulirish/5d52fb081b3570c81e3a this._element.nativeElement.offsetTop;
also does, so it probably does not matter.
from ng-defer-load.
Hi @mzoellner, did you get a chance to check this? Thanks
from ng-defer-load.
Hi @vinayakpatil,
really sorry this is taking so long.
Could you please update your PR, so the merge conflicts are resolved ?
I will merge it in, once I have confirmed that the calculation is correct and we won't have any regression on our end.
from ng-defer-load.
Related Issues (20)
- support angular 6 HOT 3
- deferLoad not working with animation
- deferLoad not working in Child Components HOT 9
- Extend peer dependencies to Angular 7 HOT 1
- Does not work on mobile HOT 1
- Feature Request (deferUnload) HOT 3
- ExpressionChangedAfterItHasBeenCheckedError on Safari
- Doesn't load until scroll stops iPhone HOT 1
- Can we use this library to load images from local assets directory HOT 1
- Expression change after it was checked error in Safari and IE HOT 1
- Seems not support Angular 8 HOT 1
- Performance Improvements - Reuse same IntersectionObserver as suggested in docs HOT 1
- Angular 8 & IVY rendering support HOT 10
- Media not visible for GoogleBot HOT 3
- Feature Request - Release this plugin as ES2015 module HOT 2
- Angular 5 - Building issues HOT 2
- Angular 8 production build error HOT 2
- Error in Angular 7 production build HOT 1
- FF 52 loads all content HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-defer-load.