elements icon indicating copy to clipboard operation
elements copied to clipboard

QUESTION: Why is Intersection Observer and requestIdleCallback not used?

Open dianmonblan opened this issue 3 years ago • 0 comments

Hello,

I think it can work like ngx-quicklink does using Intersection Observer and requestIdleCallback taking advantage of browser idle optimizing module download but now modeled to component download.

I recommend use Intersection Observer and requestIdleCallback with animationFrameScheduler for better performance on the browser.

Why is Intersection Observer and requestIdleCallback not used? Thanks for the reply and sorry for my poor english :kissing_closed_eyes:

https://github.com/angular-extensions/elements/blob/d9a4e4936bf4244c301b7eb8e36b67e89b793e2b/projects/elements/src/lib/lazy-elements/lazy-element/lazy-element.directive.ts#L105-L149

dianmonblan avatar Aug 11 '22 05:08 dianmonblan