underactuated icon indicating copy to clipboard operation
underactuated copied to clipboard

lazy load embedded youtube videos

Open RussTedrake opened this issue 5 years ago • 1 comments

We are currently paying a heavy price in load time with every youtube video that is included. What's worse, we appear to pay this price even on the chapters that are currently hidden (via display:none).

#280 will help a lot. But there are complicated solutions that could actually solve the problem. E.g. https://webdesign.tutsplus.com/tutorials/how-to-lazy-load-embedded-youtube-videos--cms-26743

RussTedrake avatar Feb 05 '20 12:02 RussTedrake

ah. already had one mechanism, but had forgetten to use it. data-src instead of src.

RussTedrake avatar Feb 07 '20 09:02 RussTedrake