gpt4 book ai didi

html - 寻找一种方式来减少具有大量HTML5音频的页面的页面加载时间

转载 作者:行者123 更新时间:2023-12-03 02:08:01 24 4
gpt4 key购买 nike

在具有大量HTML5音频的页面实例中,并且为了最大程度地提高加载时间效率(即-使加载速度尽可能快),我们不能在preload参数中设置一个值来实现这一点吗?目前,我已将预加载设置为“自动”,但是如果我们不希望任何页面在页面完全“加载”之前加载所有音频,该怎么办?由于在用户每次访问或什至同时需要全部音频的情况下,我们如何才能实现仅按需加载音频文件,从而实现方案的最大加载效率?

在此先感谢您的见解。

最佳答案

preload属性设置为none:

auto
The author thinks that the browser should load the entire audio file when the page loads
metadata
The author thinks that the browser should load only metadata when the page loads
none
The author thinks that the browser should NOT load the audio file when the page loads



取自 here

关于html - 寻找一种方式来减少具有大量HTML5音频的页面的页面加载时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26427926/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com