The Youtube video in my hidden DIV only starts to load after the DIV is shown

后端 未结 3 1098
自闭症患者
自闭症患者 2021-01-06 03:51

I have a Youtube clip in a hidden DIV on my page.

After the page has loaded I wanted the video to load quietly in the background so that when the user clicks the but

3条回答
  •  太阳男子
    2021-01-06 04:12

    I think you need to also show the video. Have you ever noticed on embedded videos in webpages that they don't even show the preview static image until they scroll into view?

    I think you will be fighting YouTube's algorithms on that one. its probably their goal NOT to load videos until a user clicks on them.

提交回复
热议问题