Mobile ★ Boilerplate

A best practice baseline for your mobile web app.

I'm new here: plz explain why it's so awesome, first.

Mobile Boilerplate is your trusted template made custom for creating rich and performant mobile web apps. You get cross-browser consistency among A-grade smartphones, and fallback support for legacy Blackberry, Symbian, and IE Mobile. You get an offline caching setup for free, fast button clicks, a media query polyfill, and many common mobile WebKit optimizations waiting for you. Use Mobile Boilerplate to start your mobile webapp quickly and immediately benefit from community best practices.

Why it is awesome

Why it is awesome-er

MAKE IT EVEN BETTER!

Download v3.0

Download Boilerplate Keep the hints and links or Download Boilerplate "stripped" No comments, just the bizniss.

Read the docs Contribute on Github Follow on twitter

v3.0 Changelog

index.html

  • Removed initial-scale=1.0 from meta
  • Excluded scalefix by default
  • Updated startup tablet landscape dimensions
  • Added lang attr to be consistent with h5bp
  • Removed meta author to be consistent with h5bp

JavaScript

  • Added MBP.enableActive
  • Fixes MBP.hideUrlBar() when addEventListener is undefined
  • Added preventing iOS from zooming onfocus
  • Worked around a tricky bug in Android 2.3 to MBP.fastButton
  • Removed respond.js
  • Split hideUrlBar into an intial function, and a general use function cached the scrollTop so that only needs to be detected once
  • Moved helper.js one level up
  • Updated jQuery to 1.7.1 and added missing fallback local file
  • Updated modernizr to the latest version
  • added iPod (Touch) to MBP.scaleFix

CSS

  • Removed input::-moz-focus-inner as it is not required on Firefox on Mobile
  • Removed the ellipsis helper class to be consistent with h5bp

General

  • Removed the build script to its own repo
  • Updated 404 page to be consistent with h5bp
  • Removed /demo and /test
  • Removed analytics and wspl
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.