In HTML5, can you save an image to cache programmatically?

后端 未结 4 1686
借酒劲吻你
借酒劲吻你 2020-12-24 15:10

I love that in HTML5 you can save text data out to a local database, and can even use SQL to do it. (http://webkit.org/blog/126/webkit-does-html5-client-side-database-storag

4条回答
  •  死守一世寂寞
    2020-12-24 15:41

    You could do what Google does in Mobile GMail and implement as a data Url. This means that following would be cached as part of the page (if included in cache.manifest), as they are not external. Either:

    embedded folder icon
    

    Or:

    
    

    Read more on the subject here: http://www.websiteoptimization.com/speed/tweak/inline-images/

提交回复
热议问题