lbry-desktop/ui
infinite-persistence 2a6df18b72
ChannelThumbnail fixes (#6075)
* Restore "use cdn for channel thumbnails"

This reverts commit e7adc607fa.

* ChannelThumbnail: disable optimization in Channel Page and for GIFs

## Issue
5564: Don't use optimized URLs on channel pages (profile/banner)

## Notes
This is not the best/full solution yet, but it is better than what we have to today (one step in the right direction).

Optimized channel thumbnail size is currently hardcoded to a lowest common denominator.
- Pro(s):
  - For images used in multiple places (different sizes) in a page, the total time needed to get the optimized version for each size is too much. Also, the optimizer seems to increase the size of the image in some cases. So, getting 1 image and re-using it is faster for this scenario.
  - Simpler code (no need to mount first -> get dimension -> load image)
- Cons:
  - We aren't fully optimizing the size, so not really addressing Core Web Vitals score problem.
    - e.g. in the front page, we could have used a smaller image for the channel thumbnails.
  - We haven't address the problem with large screen sizes.

* Restore channel selector

This reverts b5cc0bb42d

* ChannelThumbnail: fix lazy-loading

- Closes 6066: Revisit lazy-loading Channel thumbnails
- Properly fixes 5933: Thumbnail lazy-load causes ChannelSelector icon to not update.
    - Add effect-dependency on `channelThumbnail` and `thumbError`.
- Really perform the lazy-loading now.
    - `data-src` was not used, so it wasn't actually lazy loading previously.
2021-05-17 15:51:21 -04:00
..
component ChannelThumbnail fixes (#6075) 2021-05-17 15:51:21 -04:00
constants Notification: handle "creator_comment" (#6069) 2021-05-14 10:59:36 -04:00
effects Fix blank gif avatars (#6060) 2021-05-14 11:00:07 -04:00
modal Continuation of "Add release date field #5514" (#6049) 2021-05-15 00:10:28 -04:00
page ChannelThumbnail fixes (#6075) 2021-05-17 15:51:21 -04:00
redux fetch notofication/categories for notification types dropdown 2021-04-30 12:45:46 -04:00
scss Continuation of "Add release date field #5514" (#6049) 2021-05-15 00:10:28 -04:00
util Livestream-only query cleanup. (#6036) 2021-05-15 01:52:24 -04:00
analytics.js integrate some Odysee code with master 2021-04-27 19:56:30 -04:00
app.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
comments.js hyperchats 2021-04-23 16:20:17 -04:00
i18n.js Revert "Simplify language lists" 2021-04-06 15:42:27 -04:00
index.jsx When a new reward is acquired, only close modals if the reward comes from reward_code 2021-01-08 08:16:41 -07:00
logWarningConsoleMessage.js new lbc icon 2020-09-29 17:12:32 -04:00
native.js working 2020-12-16 10:52:22 -05:00
reducers.js use redux for livestream claim setup 2021-04-23 14:51:09 -04:00
rewards.js When a new reward is acquired, only close modals if the reward comes from reward_code 2021-01-08 08:16:41 -07:00
store.js CoinSwap: websocket + multi-coin 2021-04-13 14:02:25 -04:00