Skip to content

wesleyhales/slidfast-1

 
 

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.4%
  • Ruby 0.6%