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.
精彩评论