building mobile websites

23

Upload: realin

Post on 08-Jul-2015

1.187 views

Category:

Technology


0 download

DESCRIPTION

Explains the advantage of building Mobile website and why one business should have a Mobile website along with a main website

TRANSCRIPT

Page 1: Building Mobile Websites
Page 2: Building Mobile Websites

Building Mobile WebsitesAdd Spark to your mobile presence

Sachin Khosla

Founder, Digimantra.com

Page 3: Building Mobile Websites

What’s the catch?

Mobile Website

Quick Glimpse Why do I need it anyways ? Technology ?

What’s the USP ?

Being intelligent

User / Device sensing Location Sensing

Making it faster

Some Tips on iphone website development

Page 4: Building Mobile Websites

Mobile Websites

WOW 1 WOW 2

WAP

WML

GPRS

RingTones

WallPapers

Animation

Page 5: Building Mobile Websites

Sorry If that hurt your eyes

;)

Page 6: Building Mobile Websites
Page 7: Building Mobile Websites

Why do I need it ?

• Google lists Mobile websites separately

• Reach & Availability

• Micro world (iPad, SmartPhones,Tablets)

• Mobile web is catching up in countries like US

• More Social == More Users

• mCommerce , Advertising and a lot more ..

• It’s evolving

• if nothing else, then get because everyone is getting it :)

Page 8: Building Mobile Websites

Technologies

• HTML / HTML5

• CSS / CSS3

• JS / AJAX

• And of course any server side language

Page 9: Building Mobile Websites

HTML / HTML5

• Minimum script required == Less KB == Fast

• Video tag – being used by Youtube

• Local storage being used by FB, Twitter

• Offline application cache

• Not just mobile http://www.youtube.com/html5

Page 10: Building Mobile Websites

CSS / CSS3

•Yes Smartphones support CSS

•In fact, CSS3 is much more powerful

•Nice UI

•Smooth Transitions

•No JavaScript – for most features like slide etc.

•Built-in , so faster

Page 11: Building Mobile Websites

JS / Ajax

•Jquery Mobile

• Awesome UI

• Events

• Accessibility

• Basic JavaScript

DEMO - http://jquerymobile.com/demos

Page 12: Building Mobile Websites

USP

• Know your visitors

• Relate to them – Socialize

• Relevance == Context

• Surprise them – Nice of course :)

• Don’t miss a lead

• Affiliate

Page 13: Building Mobile Websites

Being Intelligent

• Yes you are – but is your APP ?

• Sense the device & Serve relevant content

• Keep Track of what you are doing.

• Look Smart – Sparky !

Page 14: Building Mobile Websites

Making it faster

• Utilize Cache

• Remove the irrelevant content

• Use of proper HTML/HTML5 tags

• Use CSS3 instead of images, wherever possible

• Use CSS Sprite or Data URI scheme – reduces http request

• Fallback mechanism for the lowest compatible devices

• Bits & Bytes matter, Minify JS, css, even html

• Test on various Emulators available over the internet

Page 15: Building Mobile Websites

Tips on Smartphone website development

Page 16: Building Mobile Websites

Data URI Scheme

<imgsrc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKcA

AABBCAIAAAA7aSMkAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllP

AAARzFJREFUeNrtvXm8” width="167" height="65">

Page 17: Building Mobile Websites

Detect Location

navigator.geolocation.getCurrentPosition(getLocation, unknownLocation);function getLocation(pos){var latitde = pos.coords.latitude;var longitude = pos.coords.longitude;alert('Your current coordinates (latitide,longitude) are : ' + latitde + ', ' + longitude);

}function unknownLocation(){alert('Could not find location');

}

Page 18: Building Mobile Websites

Photo slideshow with Swap

$('.swipe').swipe({

swipeLeft: function() { $('#someDiv').fadeIn() },

swipeRight: function() { $('#someDiv').fadeOut() },

})

Page 19: Building Mobile Websites

Serving the Appropriate CSS file

<link rel="stylesheet" href="site.css" media="screen" /><link rel="stylesheet" href="mobile.css" media="handheld" />

Page 20: Building Mobile Websites

Scale your website

<meta name="viewport" content="width=devic

e-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />

Page 21: Building Mobile Websites

Make your web APP fullscreen

window.scrollTo(0, 1);

Page 22: Building Mobile Websites

HomeScreen icon

<link href="path/to/your/icon.png" rel="apple-touch-icon" />

Page 23: Building Mobile Websites

Thank you !

www.digimantra.com

Twitter - @realin

FB – http://fb.me/sachinkhosla