the mobile web framework

32
The Mobile Web Framework An Introduction to Eric Bollens ebollens AT oit.ucla.edu Mobile Web Framework Architect UCLA Office of Information Technology August 4, 2011

Upload: mikaia

Post on 24-Feb-2016

74 views

Category:

Documents


0 download

DESCRIPTION

The Mobile Web Framework. An Introduction to. Eric Bollens ebollens AT oit.ucla.edu Mobile Web Framework Architect UCLA Office of Information Technology. August 4, 2011. Overview. The Mobile Landscape Framework Overview Leveraging the Framework Demo Reflections on Mobile Web Apps - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: The Mobile Web Framework

The Mobile Web Framework

An Introduction to

Eric Bollensebollens AT oit.ucla.edu

Mobile Web Framework ArchitectUCLA Office of Information Technology

August 4, 2011

Page 2: The Mobile Web Framework

Overview1. The Mobile Landscape2. Framework Overview3. Leveraging the Framework4. Demo5. Reflections on Mobile Web Apps6. Roadmap for the MWF

Page 3: The Mobile Web Framework

A mobile presenceis not just a desire, but an expectation.

Page 4: The Mobile Web Framework

The Mobile Trend• Mobile is soon to overtake the desktop.• Diverse landscape:– Devices – Operating systems– Browsers

• Rapidly changing technology.

Page 5: The Mobile Web Framework

The Mobile Trend• Over 50% of students have a handheld

device.• 74% of students either have or intend to

buy an Internet-enabled handheld device in the next year.

• Students are more likely to remember their cell phone than their wallet.

Page 6: The Mobile Web Framework

Native Applications+ Billions of app downloads+ Rich and well-defined features and API- Device-specific development- Manual updates for end users- Diverse environments each requiring development

Page 7: The Mobile Web Framework

Web Applications+ Broad distribution to wide range of devices+ Established paradigms+ Scalable architecture+ Low maintenance- Limited API and access to device-specific features- New and evolving specifications

Page 8: The Mobile Web Framework

The Mobile Web Framework

is federated, platform-independent and device-agnostic.

Page 9: The Mobile Web Framework

Principles• Device agnostic• Graceful degradation• Unified mobile presence• Technology & platform independent• Scalable, distributed architecture• Modern web standards

Page 10: The Mobile Web Framework

Device Agnostic• Least common denominator– XHTML MP 1.0: GIF, JPG, 256 colors, 120x120

px• HTML entities are defined semantically• Framework determines best presentation• Progressive enhancement– Three tier classification scheme– Deeper device awareness

Page 11: The Mobile Web Framework

Graceful Degradation

Page 12: The Mobile Web Framework

One Code, Many Devices• Works on any device

with a web browser.• Markup-driven with

semantic entities.• Progressive

enhancement for a rich user experience on more capable devices.

Page 13: The Mobile Web Framework

One Framework, Many Environments

• Framework uses browser-side technologies.

• Compatible with any server-side languages, technologies and environments.

• Use your programming language of choice.

Framework

PHP

Ruby

Python

….NET

Java

Perl

Page 14: The Mobile Web Framework

Modern Web Standards• XHTML MP 1.0 and WCSS markup.• Dynamic markup from newer standards:– HTML 4.01 & 5– CSS 2.1 & 3– ECMA-262-3

• Availability of new HTML 5 technology features for deep device functionality.

Page 15: The Mobile Web Framework

Leveraging the framework

in mobile web applications.

Page 16: The Mobile Web Framework

Getting Started• Markup is simple, semantic class

definitions.• Mobile look and feel is arrived at through

dynamic CSS and JS handlers.• Additional scripts for special functionality:– CSS & JS Minification– Image Compression and Conversion– Mobile Redirection

Page 17: The Mobile Web Framework

Getting Started• Include the core handlers in the <head>

<link rel=“stylesheet” href=“http://m.ucla.edu/assets/css.php”><script type=“text/javascript”src=“http://m.ucla.edu/assets/js.php”></script>

• Some other scripts are included in <head>.• Others are included inline such as in <img>.

Page 18: The Mobile Web Framework

Style Entities• Page elements– Header– Footer

• Content elements– Content Areas– Menus– Buttons

Page 19: The Mobile Web Framework

Interactivity Libraries• Transitions and Touch Transitions– Markup-driven.– Underlying implementation is CSS 3 and JS.– Degrades gracefully.

• Geolocation– Common interface for HTML 5 and Google

Gears.– Simple detection of device support.

Page 20: The Mobile Web Framework

Standalone Scripts• CSS and JS Minifiers– Reduce payload size.– Consolidate CSS and JS into one file each.– Deliver assets to single classification levels.– Can minify through standalone script or

directly through the CSS and JS handlers.

Page 21: The Mobile Web Framework

Standalone Scripts• Image Compression and Conversion– Optimize images based on device size.– Convert to a device-supported format.

• Mobile Redirection– Continuity with device parsing.– Remember redirection preference.– [MWF1.1] Modal prompt for redirection.

Page 22: The Mobile Web Framework

Demo

Page 23: The Mobile Web Framework

Suggestionsfor the mobile web.

Page 24: The Mobile Web Framework

Understand your Audience• Desktop browsing is characterized by– page hops– searches– large blocks

• The mobile experience is characterized as– an integrated experience– short and directed content– rich interaction and movement

Page 25: The Mobile Web Framework

A New Approach to Content• Don’t create a mini version of a desktop

site.• Reconsider movement around the site.• Keep focus on the current task.• Consider the context:– Small screen– Touch interface– Mobility

Page 26: The Mobile Web Framework

Keep It Simple• Design markup with compatibility in mind.– XHTML MP 1.0– WCSS

• Keep the user focused• Keep the experience directed.• Do not clutter the screen.

Page 27: The Mobile Web Framework

Moving forwardinto a richer mobile experience.

Page 28: The Mobile Web Framework

The Current Version of MWF

• Classification and capability management.• Base set of CSS entities and JS

functionality.• Several CSS 3 / JS interactivity libraries.• Compression, conversion and minification.• Device telemetry available in CSS and JS.

Page 29: The Mobile Web Framework

The Roadmap for MWF• Availability of new APIs and functionality.– Page performance– Improved user interfaces– Richer interaction

• No backwards compatibility issues.– All existing interfaces are maintained.– Semantics remain constant.– Early access to HTML 5 technologies.

Page 30: The Mobile Web Framework

The Roadmap for MWF• MWF 1.2 – 2012 Q1– Forms API– Messages API– Native Container– JS Interactivity Libraries– User-customizable Front Splash Page

• MWF 1.3 – 2012 Q3

Page 31: The Mobile Web Framework

Collaboration• Fast-growing collaborative initiative• Framework collaboration site:– http://mwf.ucla.edu

• Source available on Github:– http://github.com/ucla/mwf

• MWF Conference August 22 & 23– http://mwf.ucla.edu/conference

Page 32: The Mobile Web Framework

Thank youfor listening.