HTML5 audio 为什么发送了2次HTTP请求
1个回答
展开全部
> I noticed that in various browsers multiple GET requests were made
> for the same MP3 file when the audio player was loaded.
> Is it possible that Safari is making additional requests to fetch metadata?
> Try different values of the preload attribute to see if it makes any difference:
> preload="none" - no data is prefetched (shouldn't see any GETs)
> preload="metadata" - basic metadata like duration, bit rate, sample rate, etc. is prefetched (should see one GET)
> preload="auto" - the whole file is prefetched (may see multiple GETs)
> for the same MP3 file when the audio player was loaded.
> Is it possible that Safari is making additional requests to fetch metadata?
> Try different values of the preload attribute to see if it makes any difference:
> preload="none" - no data is prefetched (shouldn't see any GETs)
> preload="metadata" - basic metadata like duration, bit rate, sample rate, etc. is prefetched (should see one GET)
> preload="auto" - the whole file is prefetched (may see multiple GETs)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询