SlideShare a Scribd company logo
HTML 5
Offline Web Applications



                    Page 1
Speaker




ABOUT

 CTO Innovagency/Tech Trainer & Speaker Self Employee
                                   amarreiros@gmail.com

                                   digitalmindignition.com
                                   @AlexMarreiros




                                                 Page 2
Agenda

         • Features

         • Offline Support

         • Manifest

         • Cache in the offline model

         • Scripting Needs

         • Update Manifesto

         • Offline Storage

         • Q&A
                                        Page 3
Features




           Offline




                     Online
                              Page 4
Features

           Some Questions you may have:

           If Web application involves a conection
           why Offline WebApps?

           •A lot of webapps have the big part of
           processing done on the client side…


           •Browsers are often used to business
           and collaboration applications…


           •Great part of the operations you do
           don’t need to be immediatly exectuted,
           but may be immediatly done…
                                            Page 5
Features




           HTML 5 affiliated Technologies
           recognize the need to execute some
           web application even when we are
           offline (example E-mail).




                                       Page 6
Features




           First access get
           The needed
           resources
           To work



                              Page 7
Features

           Benefits

           •Offline surfing

           •Faster downloads

           •Efficient server-browser
           interaction

           •Structured data storage



                                       Page 8
DEMO




       DEMO



              Page 9
Offline
Support
          To use this HTML 5 enchantment we
          have first to always verify the
          support of the browser to Offline
          Web Apllications
          function suportOfflineWebapp(){
                  return !!windows.applicationCache
          }

          Or
          If(Modernizr.applicationcache){
                  return true
          }
          Else{
                  return false
          }
                                                      Page 10
Manifest




           Web
           Application Manifest




                              Page 11
DEMO




       DEMO



              Page 12
Manifest

           Example
           CACHE MANIFEST
           # Explicitly cached 'master entries'.
           CACHE:
                    /favicon.ico
                    index.html
                    stylesheet.css
                    images/logo.png
                    scripts/main.js
           # Resources that require the user to be online.
           NETWORK:
                    login.php
           # offline.html will be served in place of all other files
           FALLBACK:
                    /static.html



                                                              Page 13
DEMO




       DEMO



              Page 14
Cache
in the
offline                          But how Caches work?
model




                                                                               Page
          http://marakana.com/bookshelf/html5_tutorial/offline_applications.html      15
DEMO




       DEMO



              Page 16
Scripting
Need’s
            We had already seen the Manifest

            His sections

            How to choose files each we want to
            work offline


            But…How we do to keep our
            Applicationm working even in
            offline mode?



                                         Page 17
DEMO




       DEMO



              Page 18
Updating
Manifesto




            Page 19
DEMO




       DEMO



              Page 20
Offline
Storage
          And if… i want other types of
          storage to save data While my
          Application is working offline?

          •WebStorage

          •Web SQL atabase

          •INDEXDB

          •Filesystem API




                                    Page 21
Pratices

           • Cache When?

           • Storage When?

           • Why Offline Web APPlications?




                                        Page 22
DEMO




       DEMO



              Page 23
Remember

           Why Offline WebApps?

           •A lot of webapps have the big part of
           processing done on the client side…


           •Browsers are often used to business
           and collaboration applications…


           •Great part of the operations you do
           don’t need to be immediatly exectuted,
           but may be immediatly done…




                                           Page 24
Q&A


      Questions




                  Page 25
The End



           THANK YOU ALL!

          Next Steps:
               Experiment
                 Dig More
                    Use
                      Follow & Join the
                         HTML5 community




                                     Page 26

More Related Content

PDF
Firefox OS - HTML5 for a truly world-wide-web
PPTX
Website development & it's trends
PDF
Let Non-Developers Develop your Site. Manu Raivio
PDF
JWC 2015 - Mobile apps development for Joomla!
PPT
Single Page Application presentation
PDF
Future of the Web
PDF
10 Web Performance Lessons For the 21st Century
PPTX
Web Application Development Process presented by @Cygnismedia
Firefox OS - HTML5 for a truly world-wide-web
Website development & it's trends
Let Non-Developers Develop your Site. Manu Raivio
JWC 2015 - Mobile apps development for Joomla!
Single Page Application presentation
Future of the Web
10 Web Performance Lessons For the 21st Century
Web Application Development Process presented by @Cygnismedia

What's hot (20)

PPTX
Architecture & Workflow of Modern Web Apps
PDF
The Future of the web
PDF
What Web Framework To Use?
PDF
NodeConfLondon - Making ES6 happen with ChakraCore and Node
PDF
The headless CMS
PDF
Innovation vs. Impatience - keynote at JSOpenDay London 2015
PDF
Into the Box 2018 Building a PWA
PDF
HTML5 or Android for Mobile Development?
PDF
FEDM Meetup: Introducing Mojito
PPTX
Magento 2 Best Practice Workfow // David Lambauer // Meet Magento 2017 // Lei...
PDF
HTML5 for the Ruby Developer
PDF
Mozilla Prism
ODP
REST API for Joomla
PPTX
HTML5 - A Brief Introduction
ODP
Joomla REST API - JoomlaDay Bangkok 2014
PDF
CSS vs. JavaScript - Trust vs. Control
KEY
How to do Scalable UI-Heavy Development at a Breakneck Pace
PPTX
JVx with VisionX and Oracle Forms integration
PDF
Stapling and patching the web of now - ForwardJS3, San Francisco
PDF
Dreamweaver CS6, jQuery, PhoneGap, mobile design
Architecture & Workflow of Modern Web Apps
The Future of the web
What Web Framework To Use?
NodeConfLondon - Making ES6 happen with ChakraCore and Node
The headless CMS
Innovation vs. Impatience - keynote at JSOpenDay London 2015
Into the Box 2018 Building a PWA
HTML5 or Android for Mobile Development?
FEDM Meetup: Introducing Mojito
Magento 2 Best Practice Workfow // David Lambauer // Meet Magento 2017 // Lei...
HTML5 for the Ruby Developer
Mozilla Prism
REST API for Joomla
HTML5 - A Brief Introduction
Joomla REST API - JoomlaDay Bangkok 2014
CSS vs. JavaScript - Trust vs. Control
How to do Scalable UI-Heavy Development at a Breakneck Pace
JVx with VisionX and Oracle Forms integration
Stapling and patching the web of now - ForwardJS3, San Francisco
Dreamweaver CS6, jQuery, PhoneGap, mobile design
Ad

Viewers also liked (11)

PPT
Offline powerpoint
KEY
Alan Downie and Matt Milosavljevic - BugHerd, the Incubator Experience
PPTX
Dave Orchard - Offline Web Apps with HTML5
PPTX
Taking Web Applications Offline
KEY
HTML5 vs Silverlight
PPTX
powerpint presentation about IGNOU
PPTX
History of East Asian Literature
PPTX
Asian Literature
PPTX
Asian literature
PPT
Teaching Aid - IGNOU.ppt
Offline powerpoint
Alan Downie and Matt Milosavljevic - BugHerd, the Incubator Experience
Dave Orchard - Offline Web Apps with HTML5
Taking Web Applications Offline
HTML5 vs Silverlight
powerpint presentation about IGNOU
History of East Asian Literature
Asian Literature
Asian literature
Teaching Aid - IGNOU.ppt
Ad

Similar to HTML 5 Offline Web apps (20)

PDF
Django in the Real World
PPTX
Seattle bestpractices2010
PDF
ICONUK 2014 - From Idea To App
PPTX
The Power of HTML5 Offline: Mobile and More!
PDF
Targeting Mobile Platform with MVC 4.0
PPTX
Single Page Applications: Your Browser is the OS!
PDF
Webapi
PDF
#1 - HTML5 Overview
PDF
SOA Knowledge Kit, Developer Productivity and Performance Comparison Analysis
PPTX
Extending SAP SuccessFactors in the Cloud and how not to do it
PDF
Introduction to ASP.NET MVC
PPTX
Building Mobile Web Apps with jQM and Cordova on Azure
PPT
Develop a Quick and Dirty Web interface to your database: for the DBA and oth...
PPTX
EMC World 2016 12 Factor Apps FTW
PDF
Modern Web Applications
PDF
Quo vadis, JavaScript? Devday.pl keynote
PDF
orcreatehappyusers
PDF
orcreatehappyusers
ZIP
3-18-11
PDF
Service worker API
Django in the Real World
Seattle bestpractices2010
ICONUK 2014 - From Idea To App
The Power of HTML5 Offline: Mobile and More!
Targeting Mobile Platform with MVC 4.0
Single Page Applications: Your Browser is the OS!
Webapi
#1 - HTML5 Overview
SOA Knowledge Kit, Developer Productivity and Performance Comparison Analysis
Extending SAP SuccessFactors in the Cloud and how not to do it
Introduction to ASP.NET MVC
Building Mobile Web Apps with jQM and Cordova on Azure
Develop a Quick and Dirty Web interface to your database: for the DBA and oth...
EMC World 2016 12 Factor Apps FTW
Modern Web Applications
Quo vadis, JavaScript? Devday.pl keynote
orcreatehappyusers
orcreatehappyusers
3-18-11
Service worker API

More from Alexandre Marreiros (20)

PPTX
Agular fromthetrenches2netponto
PPTX
Whats a Chat bot
PPTX
Type of angular 2
PPTX
Xamarin devdays 2017 - PT - connected apps
PPTX
ASP.NEt MVC and Angular What a couple
PPTX
PPTX
Jws masterclass progressive web apps
PPTX
Xamarin.forms
PPTX
Quick View of Angular JS for High School
PPTX
Pt xug xamarin pratices on big ui consumer apps
PPTX
Get satrted angular js day 2
PPTX
Get satrted angular js
PPTX
Gab2015 azure search as a service
PPTX
Pragmatic responsive web design industry session 7
PPTX
Boot strapandresponsiveintro
PPTX
WebSite development using WinJS
PPTX
Universal Apps Development using HTML 5 and WINJS
PPTX
GWAB Mobile Services
PPTX
Html5ignition newweborder
PPTX
Windows8.1 html5 dev paradigm discussion netponto
Agular fromthetrenches2netponto
Whats a Chat bot
Type of angular 2
Xamarin devdays 2017 - PT - connected apps
ASP.NEt MVC and Angular What a couple
Jws masterclass progressive web apps
Xamarin.forms
Quick View of Angular JS for High School
Pt xug xamarin pratices on big ui consumer apps
Get satrted angular js day 2
Get satrted angular js
Gab2015 azure search as a service
Pragmatic responsive web design industry session 7
Boot strapandresponsiveintro
WebSite development using WinJS
Universal Apps Development using HTML 5 and WINJS
GWAB Mobile Services
Html5ignition newweborder
Windows8.1 html5 dev paradigm discussion netponto

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Spectroscopy.pptx food analysis technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Empathic Computing: Creating Shared Understanding
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Approach and Philosophy of On baking technology
PPTX
MYSQL Presentation for SQL database connectivity
PDF
cuic standard and advanced reporting.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Understanding_Digital_Forensics_Presentation.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Unlocking AI with Model Context Protocol (MCP)
Spectroscopy.pptx food analysis technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Big Data Technologies - Introduction.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Mobile App Security Testing_ A Comprehensive Guide.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Empathic Computing: Creating Shared Understanding
“AI and Expert System Decision Support & Business Intelligence Systems”
Approach and Philosophy of On baking technology
MYSQL Presentation for SQL database connectivity
cuic standard and advanced reporting.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Chapter 3 Spatial Domain Image Processing.pdf

HTML 5 Offline Web apps

  • 1. HTML 5 Offline Web Applications Page 1
  • 2. Speaker ABOUT CTO Innovagency/Tech Trainer & Speaker Self Employee amarreiros@gmail.com digitalmindignition.com @AlexMarreiros Page 2
  • 3. Agenda • Features • Offline Support • Manifest • Cache in the offline model • Scripting Needs • Update Manifesto • Offline Storage • Q&A Page 3
  • 4. Features Offline Online Page 4
  • 5. Features Some Questions you may have: If Web application involves a conection why Offline WebApps? •A lot of webapps have the big part of processing done on the client side… •Browsers are often used to business and collaboration applications… •Great part of the operations you do don’t need to be immediatly exectuted, but may be immediatly done… Page 5
  • 6. Features HTML 5 affiliated Technologies recognize the need to execute some web application even when we are offline (example E-mail). Page 6
  • 7. Features First access get The needed resources To work Page 7
  • 8. Features Benefits •Offline surfing •Faster downloads •Efficient server-browser interaction •Structured data storage Page 8
  • 9. DEMO DEMO Page 9
  • 10. Offline Support To use this HTML 5 enchantment we have first to always verify the support of the browser to Offline Web Apllications function suportOfflineWebapp(){ return !!windows.applicationCache } Or If(Modernizr.applicationcache){ return true } Else{ return false } Page 10
  • 11. Manifest Web Application Manifest Page 11
  • 12. DEMO DEMO Page 12
  • 13. Manifest Example CACHE MANIFEST # Explicitly cached 'master entries'. CACHE: /favicon.ico index.html stylesheet.css images/logo.png scripts/main.js # Resources that require the user to be online. NETWORK: login.php # offline.html will be served in place of all other files FALLBACK: /static.html Page 13
  • 14. DEMO DEMO Page 14
  • 15. Cache in the offline But how Caches work? model Page http://marakana.com/bookshelf/html5_tutorial/offline_applications.html 15
  • 16. DEMO DEMO Page 16
  • 17. Scripting Need’s We had already seen the Manifest His sections How to choose files each we want to work offline But…How we do to keep our Applicationm working even in offline mode? Page 17
  • 18. DEMO DEMO Page 18
  • 20. DEMO DEMO Page 20
  • 21. Offline Storage And if… i want other types of storage to save data While my Application is working offline? •WebStorage •Web SQL atabase •INDEXDB •Filesystem API Page 21
  • 22. Pratices • Cache When? • Storage When? • Why Offline Web APPlications? Page 22
  • 23. DEMO DEMO Page 23
  • 24. Remember Why Offline WebApps? •A lot of webapps have the big part of processing done on the client side… •Browsers are often used to business and collaboration applications… •Great part of the operations you do don’t need to be immediatly exectuted, but may be immediatly done… Page 24
  • 25. Q&A Questions Page 25
  • 26. The End THANK YOU ALL! Next Steps: Experiment Dig More Use Follow & Join the HTML5 community Page 26

Editor's Notes

  • #8: Foot Note What happens is that a Web application that works offline, has a container of every necessary files HTML etc needed to mke him work offline. That resources are geted by the browser when the application executes online for the first time. The sync of the offline operations happen when the application is used online again
  • #9: Offline surfing: Get access to previously viewed web content without any browsing or network connection limitations. Faster downloads: Thanks to the caching feature, web pages and applications will load faster. So the next time you access any site whether offline or online your browser will process the download speedily. Efficient server-browser interaction: Your browser will update cached files if any changes are made at the server end. This means your cached files will remain in sync with the original files every time you log on to a website or utilize any web tools online. Structured data storage: The feature utilizes an SQL database to address issues related to viewing emails locally or browsing dynamic sites like eCommerce shopping carts. Now you can easily add items to your shopping cart, create wish lists, read product reviews while offline without being rushed.
  • #11: The first step to use Offline enchantments are listed here With Javascript, with modernizer
  • #12: The way the technology had defined to keep the list of resources needed by the application to run in offline mode is using the creation of a manifest File. In this file we indicate the path to every pages and resources needed for the webapplication to run in offline mode. To say in the HTML 5 that the file uses a manifest is by using the tag <html manifest=“manifestfile.manif” />
  • #14: More information at http://www.html5rocks.com/en/tutorials/appcache/beginner/ A manifest can have three distinct sections: CACHE, NETWORK, and FALLBACK. CACHE:This is the default section for entries. Files listed under this header (or immediately after the CACHE MANIFEST) will be explicitly cached after they're downloaded for the first time.NETWORK:Files listed under this section are white-listed resources that require a connection to the server. All requests to these resources bypass the cache, even if the user is offline. Wildcards may be used.FALLBACK:An optional section specifying fallback pages if a resource is inaccessible. The first URI is the resource, the second is the fallback. Both URIs must be relative and from the same origin as the manifest file. Wildcards may be used.
  • #16: FlowShart aquire from http://marakana.com/bookshelf/html5_tutorial/offline_applications.html all rights reserved to them
  • #20: The browser always start obtaning the manifesto when using a offline Web app When the browser reads the manifest the first think he does is to verify if the manifesto is valid, while the manifest is valid the Browser uses it only when manifest is invalid browser get’s a new manifest even with network avaiable.
  • #22: Web Storage  is a very convenient form of offline storage, being just a simple structure of key-value pairs Web SQL Database  is just like it says on the tin: an offline SQL database. Implementations today are based on  SQLite , an general-purpose open-source SQL engine IndexedDB  is a nice compromise between Web Storage and Web SQL Database. Like the former, it's relatively simple; and like the latter, it's capable of being very fast.  File API: Directories and System  fills a niche not supported by the other techniques. It gives you a way to store binary content (as well as plain-text), create folder hierarchies, and a means to store potentially huge data structures