lbry-desktop/ui
infinite-persistence 7cbb7a54aa
Handle browsers that don't support IntersectionObserver (#1739)
* Remove ad-handling in videojs.jsx

Primary impetus is to remove unnecessary IntersectionObserver usage, but it should be removed anyway because:
- no longer relevant today with Adnimation's script.
- we also globally hide floating ads now, so no more invisible divs.
- the code is wrongly placed -- it's not the responsibility of the Videojs component.

* use-lazy-loaded: skip if IntersectionObserver is not supported

## Issue
Page not loading in older Safari (e.g. ipad air 2)

## Approach
Instead of using a polyfill (which comes with implementation caveats), just not apply the lazy-loading for those old browsers. Not lazy-loading is better than not loading at all, plus this is way easier to test (even by just reading the code) than testing out the polyfill implementation's caveats.

The cons is we would need the polyfill if we use it in other places in the future.

## Code Changes
Factor out the src-setting code, and use it directly when IntersectionObserver is not found.
2022-06-23 08:10:27 -04:00
..
component Handle browsers that don't support IntersectionObserver (#1739) 2022-06-23 08:10:27 -04:00
constants Add platforms to share buttons (#1721) 2022-06-22 08:23:40 -04:00
contexts Category: Hide "Repost" from ContentType filter, except for WildWest 2022-04-25 08:49:46 -04:00
effects Handle browsers that don't support IntersectionObserver (#1739) 2022-06-23 08:10:27 -04:00
modal Minor design fixes in modals (#1711) 2022-06-20 13:51:57 +02:00
page Add token to help page (internal) (#1737) 2022-06-22 12:32:17 -04:00
redux PublishReleaseTime widget improvements (#1740) 2022-06-23 07:27:08 -04:00
scss Fix button padding on mobile 2022-06-23 13:53:19 +02:00
util Recsys: capture and use x-uuid from search results (#1727) 2022-06-22 09:43:54 -04:00
analytics.js Fix localStorage crash 2022-05-26 08:27:35 -04:00
app.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
comments.js Remove custom comments server 2022-02-03 10:24:58 -05:00
i18n.js Add env to auto report new strings in console 2022-01-05 00:26:31 -08:00
index.jsx 1318: Persist recsys data for send after tab close 2022-05-24 13:52:50 -04:00
lbry.js Tip: show modal instead of toast when timeout 2022-06-01 08:40:39 -04: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 Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
rewards.js Change logic for daily reward claiming to weekly 2021-12-23 02:40:58 -05:00
store.js 1318: Persist recsys data for send after tab close 2022-05-24 13:52:50 -04:00