开发者

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

开发者 https://www.devze.com 2023-01-11 08:52 出处:网络
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 alre

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

精彩评论

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