+ All Categories
Home > Technology > Creating Data Driven HTML5 Applications

Creating Data Driven HTML5 Applications

Date post: 08-May-2015
Category:
Upload: gil-fink
View: 732 times
Download: 4 times
Share this document with a friend
Description:
My DevWeek 2014 session about storages options in HTML5.
17
SELA DEVELOPER PRACTICE December 20-25, 2013 Gil Fink Creating Data-Driven HTML5 Applications
Transcript
Page 1: Creating Data Driven HTML5 Applications

SELA DEVELOPER PRACTICE December 20-25, 2013

Gil Fink

Creating Data-Driven HTML5

Applications

Page 2: Creating Data Driven HTML5 Applications

Agenda

HTML5: Recap

Storing Data in the Client-Side

Q&A

Summary

Page 3: Creating Data Driven HTML5 Applications

HTML5: Recap

HTML5 ~= HTML + CSS3 + JavaScript API

The future of the web

Still under development

But a lot of features are available in modern browsers

Page 4: Creating Data Driven HTML5 Applications

What’s Under the HTML5 Umbrella?

Page 5: Creating Data Driven HTML5 Applications

Storing Data in the Client-Side

Page 6: Creating Data Driven HTML5 Applications

Demo

Using HTML5 Storages and AppCache

Page 7: Creating Data Driven HTML5 Applications

Web Storage

Key/value string storage

Simple API

sessionStorage

Data is accessible to any page from the same site opened in that window

localStorage

Data spans multiple windows and lasts beyond the current session

Page 8: Creating Data Driven HTML5 Applications

AppCache

Create offline web applications

Uses a manifest file to configure the cache

Introduces API to interact with cache events and the navigator.onLine property

Page 9: Creating Data Driven HTML5 Applications

IndexedDB

Advanced key/value data management

Made of records holding simple values and hierarchical objects

Enables

Storage of large numbers of objects locally in the browser

Fast insertion and extraction from the store

Asynchronous/Synchronous API

Page 10: Creating Data Driven HTML5 Applications

Web Application APIs Support – Web Storage

http://caniuse.com

Page 11: Creating Data Driven HTML5 Applications

Web Application APIs Support – Offline Web Applications

http://caniuse.com

Page 12: Creating Data Driven HTML5 Applications

Web Application APIs Support – IndexedDB

http://caniuse.com

Page 13: Creating Data Driven HTML5 Applications

What We Saw

Web Storage

AppCache

IndexedDB

We didn’t cover other storage APIs such as

File API

FileSystem API

Page 14: Creating Data Driven HTML5 Applications

Questions

Page 15: Creating Data Driven HTML5 Applications

Summary

You can start depending on client-side storages

Will help you:

To decrease the load on server-side and databases

To create offline web apps

Page 16: Creating Data Driven HTML5 Applications

Resources

Session slide deck and demos –

API specs – http://www.w3.org/TR/webstorage/ http://www.w3.org/TR/IndexedDB/ http://dev.w3.org/html5/spec/offline.html

My Website – http://www.gilfink.net

Follow me on Twitter – @gilfink

Page 17: Creating Data Driven HTML5 Applications

Thank You Gil Fink Senior Architect [email protected] @gilfink http://www.gilfink.net


Recommended