1
Fork 0
Commit Graph

9 Commits

Author SHA1 Message Date
viktorstrate 547ea8e824
Refactor image lazy loading, this fixes #324 2021-08-30 18:11:55 +02:00
viktorstrate b6ad3baa31
Add exhaustive switch checks 2021-04-14 12:52:07 +02:00
viktorstrate 97a8f3726d
Convert many pages to Typescript 2021-04-13 19:57:33 +02:00
viktorstrate 34a411be9d
Rewrite SharePage to typescript 2021-04-13 15:23:06 +02:00
viktorstrate c5d2f3dc8b
Continue with typescript migration 2021-04-12 16:06:06 +02:00
viktorstrate faf8602c59
Clean up EXIF info in sidebar and add tests for it
- Move debounce function to new file 'utils.js'
- Add 'isNil' function to 'utils.js'
2021-04-03 18:33:07 +02:00
viktorstrate a8ec5db9dc
Move some files to ui/helpers dir 2021-04-03 17:56:41 +02:00
stz184 cdc13fce5c Fixes photoview/issues#189
- LazyLoad helper is now a singleton class reusing the same IntersectionObserver instance for performance reasons
- IntersectionObserver is now disconnected when the component is unmounted for performance reasons
- StyledPhoto is now using useCallback to avoid unnecessary rerenderings
- Fixed issue setting loading attribute to the <img /> rendered by <ProtectedImage/> component
2021-03-31 04:58:28 +03:00
stz184 152b4c7e34 Fixes photoview/issues#189
- If it is possible, HTMLImageElement.loading is used a lightweight native browser lazy loading solution
- Custom lazyLoad library is created depending on IntersectionObserver. If IntersectionObserver is not available, the images are eagerly loaded
- removed react-lazyload from the dependencies
2021-03-30 16:51:19 +03:00