Is there a way to use a CDN (for jQuery) and have an offline Web app (via HTML5 manifests)?

后端 未结 3 458
后悔当初
后悔当初 2021-01-31 05:59

I\'m beginning to look at HTML5s ability to allow for offline Web applications.

A while back I found that using a CDN worked well for my applications, so I\'ve been stic

3条回答
  •  你的背包
    2021-01-31 06:46

    Actually, you can write your manifest that has a link to your jQuery CDN. Just like my app.manifest:

    CACHE MANIFEST
    # 2012-01-20:v4
    
    http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
    

    That is HTML segment:

    
    
        ....
    
    
    
        ....
    
    
    

    It works to me.

提交回复
热议问题