How can I reuse the audio a browser already downloaded so it doesn't download it again in other pages that use the same audio file?

倖福魔咒の 提交于 2019-12-07 20:36:27

You can use the Cache manifest to make sure that every resource that you want is downloaded only once and cached properly, even for offline browsing. See: "Offline": What does it mean and why should I care? on HTML5Rocks.

Another thing that you can use instead of (or in addition to) proper caching is having your page don't really reload but having only parts of it reloaded using AJAX like in this simple demo. A lot of JavaScript frameworks, like jQuery, YUI, Prototype, Dojo, etc. will help you with that.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!