![](/img/trans.png)
[英]Is it possible to use jquery getScript on a file that is cached with a cache.manifest
[英]If a file is listed in a cache manifest but not placed into the page's document, will it be cached?
我在缓存manifest
列出了一堆文件。 Firefox的“网络”选项卡显示正在加载和缓存的页面,但列出的文件从未显示过加载或缓存。 除非有人单击适当的按钮,然后将它们(视频)放入文档中并由JavaScript加载,否则它们不会添加到页面中。
是否所有兼容HTML5的浏览器仍将所有文件缓存在清单中,还是需要在加载时将它们添加到文档中?
表现
CACHE MANIFEST
# Manifest last updated: 2015-09-13 13:05:31
CACHE:
stylesheets/desktop.css
stylesheets/tablet.css
scripts/script.js
videos/test.mp4
要显示的主页面调用
<!DOCTYPE html>
<html manifest="manifest.appcache">
用户单击播放视频时,该视频将插入到JavaScript中。 加载期间是否需要将其添加到页面中以使其被缓存?
每当首次请求该文件时,浏览器就会在清单中缓存该文件。 清单加载中的文件不需要在文档加载事件时加载。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.