Skip to content

Conversation

@edoparearyee
Copy link

Replace custom logic to calculate InViewport status for native IntersectionObserver API to improve
performance and clean up code

BREAKING CHANGE: Removed forRoot method in module which is no longer required for AppBrowserModule. Replaced with forServer method for AppServerModule. Removed debounce feature and rxjs dependancy to leave implementation up to the consumer of the library. This reduces bundle size if debounce feature is not being used. Updated inviewport classes to sn-inviewport--in and sn-inviewport--out to match SOON styleguide

@edoparearyee edoparearyee force-pushed the perf/intersection-observer branch 4 times, most recently from b01dfb5 to eb12cfc Compare October 8, 2018 15:10
…tate

Replace custom logic to calculate `InViewport` status for native `IntersectionObserver` API to improve
performance and clean up code

BREAKING CHANGE: Removed `forRoot` method in module which is no longer required for `AppBrowserModule`.
Replaced with `forServer` method for `AppServerModule`. Removed debounce feature and rxjs dependancy to
leave implementation up to the consumer of the library. This reduces bundle size if debounce feature is not being used.
Updated inviewport classes to `sn-inviewport--in` and `sn-inviewport--out` to match SOON styleguide
@edoparearyee edoparearyee force-pushed the perf/intersection-observer branch from eb12cfc to e5249aa Compare October 8, 2018 15:33
@edoparearyee edoparearyee merged commit b722d3f into master Oct 8, 2018
@edoparearyee edoparearyee deleted the perf/intersection-observer branch October 8, 2018 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant