
chrome
slides at goo.gl/kIfUe

chrome
slides at goo.gl/kIfUe
Check out Paul Irish's presentation on Tooling and the Web App Development Stack
For more information, see incident57.com/codekit/
Don't let mobile, enterprise or web be an excuse for ugly, beauty sells!
* Use caution: following only one will look weird on another.
Problem: 300ms delay between a tap and the click event firing on mobile browsers.
Solution: Track TouchStart events
and fire a click event as soon as it receives a TouchEnd
event.
window.addEventListener('load', function() {
new FastClick(document.body);
}, false);
Problem: No debug console on mobile devices without using a remote debugger.
Solution: Send console.log events
to a separate server that you connect to from your desktop.
:listenProblem: Makes handling multi-touch gestures hella easy!
Solution: A 2k library that handles tap, double tap, swipe, hold, transform and drag.
var hammer = new Hammer(document.getElementById("container"));
hammer.ondragstart = function(ev) { };
hammer.ondrag = function(ev) { };
hammer.ondragend = function(ev) { };
hammer.onswipe = function(ev) { };
Problem: IndexedDB, WebSQL or LocalStorage, which works best?
Solution: Provides a simple API that abstracts away the implementation of each service.
var people = lawnchair();
people.save({name:"Pete", email:"petele@google.com"});
people.all(function(peeps) {
peeps.forEach(function(person) {
console.log(person);
});
});
There isn't an easy answer yet, but there are options...
#my-image { background: (low.png); }
@media only screen and (min-device-pixel-ratio: 1.5) {
#my-image { background: (high.png); }
}
// Only works in Safari & Chrome today. background-image: url(icon1x.jpg); background-image: -webkit-image-set( url(icon1x.jpg) 1x, url(icon2x.jpg) 2x );
// Not yet implmented by any browser :( <img alt="my awesome image" src="banner.jpeg" srcset="banner-HD.jpeg 2x, banner-phone.jpeg 640w, banner-phone-HD.jpeg 640w 2x">
For more information, see goo.gl/wjaLT
position: fixed;overflow: scroll;-webkit-overflow-scrolling: touch; (iOS 5+)Testing locally doesn't simulate real world mobile networks, but there are tools you can use to simulate them.
Chrome's Dev Tools allows you to over-ride some settings or force certain behaviours like:
Emulators are a great place to start, but don't give you a complete picture.
Settings >
Advanced > Developer tools and check the Enable USB Web
debugging checkbox.adb forward tcp:9222
localabstract:chrome_devtools_remoteSee goo.gl/K2Qhj for more information.
Settings
> Safari > AdvancedAdvanced, check the Show Develop menu in the
menu bar checkboxDevelop menu bar item, and
choose the device you want to debugSee goo.gl/TLmWW for more information.
about:config, search
for remote-en enable it, then restart Firefox.about:config, search
for debugger, toggle
devtools.debugger.force-local to false and
devtools.debugger.remote-enabled to true, then restart
Firefox.Tools menu bar item, and
choose Web Developer > Remote Debugger and enter the
remote IP address plus port 6000.See goo.gl/pQe4z for more information.
What: Should we create a separate mobile site or create a responsive experience instead?
Join Brad Frost as he takes apart the Obama and Romney campaign webites.
When: November 14th, 10:30am ET
Where: goo.gl/r01L6
Don't accept the status quo
Questions?
Pete LePage
g+petelepage.com/plus/
twitter@petele
slidesgoo.gl/kIfUe

chrome