Chrome hangs on loading page with many <video> tags

后端 未结 2 1373
野趣味
野趣味 2021-02-18 16:34

I have a page with many elements in it arranged one after the other.

Lets says 100 for now. When I click on the web page, Chrome loads the fi

2条回答
  •  南旧
    南旧 (楼主)
    2021-02-18 17:12

    I found a solution that bypass this Chrome issue. Posting here in case someone else runs into the same problem.

    Replaced All the

      
    

    with

      

    What the above does is suggest to the browser not to download the videos unless one clicks on the play button, then only that specific video is loaded. It places a poster image meanwhile so that the space is occupied by something and not empty.

    Now the web page loads fine in Chrome.

    Chrome has a known bug creating multiple socket connections and not closing them. https://code.google.com/p/chromium/issues/detail?id=234779

提交回复
热议问题