RussTedrake / underactuated

The course text for MIT 6.832 (and 6.832x on edX)
Other
757 stars 216 forks source link

lazy load embedded youtube videos #282

Open RussTedrake opened 4 years ago

RussTedrake commented 4 years ago

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 commented 4 years ago

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