]> cat aescling's git repositories - mastodon.git/commit
Lazy load toots using IntersectionObserver (#3191)
authorSorin Davidoi <sorin.davidoi@gmail.com>
Wed, 24 May 2017 15:55:00 +0000 (17:55 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 24 May 2017 15:55:00 +0000 (17:55 +0200)
commit8e4d1cba00b48bc52dc406956a245856c489e48a
tree80793edff7a146d5afc0b7df09da696d623111a6
parent676ba50601d04dcd15930bb92aea918cb6cdf041
Lazy load toots using IntersectionObserver (#3191)

* refactor(components/status_list): Lazy load using IntersectionObserver

* refactor(components/status_list): Avoid setState bottleneck

* refactor(components/status_list): Update state correctly

* fix(components/status): Render if isIntersecting is undefined

* refactor(components/status): Recycle timeout

* refactor(components/status): Reduce animation duration

* refactor(components/status): Use requestIdleCallback

* chore: Split polyfill bundles

* refactor(components/status_list): Increase rootMargin to 300%

* fix(components/status): Check if onRef is not defined

* chore: Add note about polyfill bundle splitting

* fix(components/status): Reduce animation duration to 0.3 seconds
app/javascript/mastodon/base_polyfills.js [moved from app/javascript/mastodon/polyfills.js with 100% similarity]
app/javascript/mastodon/components/status.js
app/javascript/mastodon/components/status_list.js
app/javascript/mastodon/extra_polyfills.js [new file with mode: 0644]
app/javascript/packs/application.js
app/javascript/styles/components.scss
package.json
yarn.lock