Skip to content
forked from slidfast/slidfast

This fork of the slidfast framework will remain unchanged after the book has been published (so that links and line numbers match up with book content). For the latest updates, see the originating slidfast repository.

License

Notifications You must be signed in to change notification settings

html5e/slidfast

 
 

Repository files navigation

slidfast

Build Status

slidfast is a learning framework created for the book HTML5 and JavaScript Web Apps on O'Reilly Media. All the examples and code are explained in detail in the book.

This framework is well commented and documented so that you can learn. It is focused on the 5 HTML5 or W3C specifications that are widely supported across all modern browsers:

  • Web Storage
  • Web Socket
  • Geolocation
  • Orientation
  • Web Workers

This means that we're only using native API's provided by the browsers. That's right kids, no jQuery or any other helper framework. All bloat has been removed so that we can truly learn what is going on and get the maximum performance on our target browsers.

Getting started

There are quite a few live examples to get you started (source here):

Basic Init

Include slidfast.js and slidfast.css in your html, then call:

slidfast({
   defaultPageID:'home-page',  //required
   touchEnabled: true, //optional - gives pages native like touch and swipe functionality
   singlePageModel: true, //optional - allows pre-fetching of external links
   optimizeNetwork: true, //optional - changes loading strategy based on network type (3G, Edge, wifi, etc...)
   orientationNav: true, //optional - navigates pages when user tilts device with accelerometer
   geo: {on:true,track:true,interval:10000,callback:geoCallback}, //optional - basic Geolocation tracking
   workers: {script:'worker1.js', threads:9, mycallback:workerCallback} //optional - Web Worker thread pool

});

##Notes There's a million ways this can be improved and made to support all web browsers. Right now slidfast mostly supports WebKit, Mozilla, Opera and the others need to be tested.

Fun Facts

About

This fork of the slidfast framework will remain unchanged after the book has been published (so that links and line numbers match up with book content). For the latest updates, see the originating slidfast repository.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 99.0%
  • Ruby 1.0%