Topic: Alternative for loading Youtube via iframe?

Grf free asked 5 years ago


Hi,

I noticed in this example Youtube modal via iframe that it kind of drops the performance because of loading several javscripts that are blocking the rendering:

https://www.youtube.com/yts/jsbin/player-vflsi8L1s/en_US/base.js (1.1MiB)
https://www.youtube.com/yts/jsbin/www-embed-player-vfl7-nBpb/www-embed-player.js (88.1KiB)
https://www.youtube.com/embed/rY0Rd0C3OQ0 (3.3KiB of inline JavaScript)

Is there an alternative way to load Youtube movies using the same classes as mentioned in the iframe-example?

Thanks.


Piotr Glejzer staff commented 5 years ago

Hi,
I think there is no alternative to load YouTube movies or other with the same classes as in embeds. You can try this https://mdbootstrap.com/plugins/jquery/video/
Best
Piotr



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.7.0
  • Device: Mac Book Pro
  • Browser: Firefox Developer
  • OS: OSX
  • Provided sample code: No
  • Provided link: Yes