Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

Faster
Web

Cache me
if you can

Javascript

Speed

Cache

Cache (/ˈkæʃ/) is a component that transparently stores data so that future requests for that data can be served faster.

Wikipedia

Memory

Practice

Browser Cache

There can be only one

Cookies

RFC 2109

Java/Flash/Google Gears

AppCache

<html manifest="cache.manifest"> Offline WebApps
        CACHE MANIFEST
        #2012-11-17:v1
        CACHE:
        /favicon.ico
        index.html
        stylesheet.css
        main.js
        NETWORK:
        /login
        /api
        FALLBACK:
        /main.сgi/static.html
        images/large/images/offline.jpg
        *.html/offline.html
      
window.applicationCache

WAT? It doesn't

FileSystem API

FileSystem API
        window.requestFileSystem(
          type, // TEMPORARY || PERSISTENT
          size, // storage size in bytes
          successCallback,
          errorCallback
        )
      

Web Storage

        window.addEventListener(
        "storage", function(
          key,
          oldValue,
          newValue,
          url
        ){}, false)
      

WebStorage

Use

demo

Thanks


@lvivski