开发者

Can you store the entire jQuery library within the application cache in HTML5?

Thats pretty much it. Looking for best practice with mobile jQuery caching. Thanks for the help开发者_运维百科 in advance.


There's no need really, with the proper caching headers the browser will already be caching the library. This isn't HTML5 specific at all, cache headers have been around for quite some time, you can configure them on your site (see the link for details) or include the jQuery script from a CDN, for example:

  • Google: http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
  • Microsoft: http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js

Both of these have the cache headers set appropriately already.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜