在 html5 中使用视频和音频标签时加载事件延迟
我正在制作的网页有一个音频和视频组件。此外,我使用的谷歌地图有 google.setOnLoadCallback
等待页面完成加载。我的问题是谷歌地图延迟显示,直到视频和音频加载,这有点太长了。有没有办法让地图在视频加载完成之前显示?
There is an audio and video component to the webpage I'm making. Additionally, I'm using google maps which has google.setOnLoadCallback
which waits for the page to finish loading. My problem is that the google map is delayed showing up until the video and audio is loaded, which is kind of too long. Is there a way to make it so that the map will display before the video is done loading?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要求浏览器不加载音频/视频或仅使用
preload
属性加载元数据:或者
audio
元素也将接受该参数。Ask the browser to either not load the audio/video or to load the metadata only using the
preload
attribute:or
The
audio
element will accept that parameter also.