Weitere ähnliche Inhalte
Ähnlich wie HTML5 offline
Ähnlich wie HTML5 offline (20)
Mehr von Justin Halsall (6)
Kürzlich hochgeladen (20)
HTML5 offline
- 3. Me: Huge
Apple fanboy!
Tuesday, June 8, 2010
- 5. I am the mayor ‘n
shit!
Tuesday, June 8, 2010
- 8. Native app Web app
3
2
1
0
Requests
Tuesday, June 8, 2010
- 9. Native app Web app
3
2
AG E!
S U CK
1
0
Requests
Tuesday, June 8, 2010
- 19. The real answer:
HTML5 Offline
Module
http://www.w3.org/TR/offline-webapps/
Tuesday, June 8, 2010
- 21. The manifest file
mime: text/cache-manifest
CACHE MANIFEST
index.html
stylesheets/all.css
javascripts/jquery.js
javascripts/rails.js
javascripts/application.js
images/logo.png
images/hoff.png
NETWORK:
contacts/index.json
Tuesday, June 8, 2010
- 22. <!DOCTYPE HTML>
<html manifest="/cache-manifest">
Tuesday, June 8, 2010
- 23. Can you hear me now?
var online = navigator.onLine;
Tuesday, June 8, 2010
- 24. Grab the data and run!
$.get('/contacts.json');
Tuesday, June 8, 2010
- 25. An app aint nuthing without:
Persistent storage
Tuesday, June 8, 2010
- 26. SQL database
http://www.w3.org/TR/offline-webapps/#sql
Tuesday, June 8, 2010
- 29. Justin Halsall
• blog: juice10.com
• pet project: tvnotify.com
• twitter.com/juice10
• wakoopa.com/juice10
• github.com/Juice10
Tuesday, June 8, 2010