Presentation is loading. Please wait.

Presentation is loading. Please wait.

LESSON 15 – UNIT 0 ADAPTING YOUR WEB SITE FOR MOBILE DEVICES.

Similar presentations


Presentation on theme: "LESSON 15 – UNIT 0 ADAPTING YOUR WEB SITE FOR MOBILE DEVICES."— Presentation transcript:

1

2 LESSON 15 – UNIT 0 ADAPTING YOUR WEB SITE FOR MOBILE DEVICES

3 WHAT IS A MOBILE SITE AND WHY DO YOU NEED ONE? As of October 2014, 64% of American adults own a smartphone.

4 3

5 4

6 APPROACHES TO DEAL WITH MOBILE DEVICES 1.Website 2.Mobile Website 3.Mobile App 4.Hybrid - combination of website and app 5

7 6

8 COMPARISON OF DESKTOP WEBSITE TO MOBILE WEBSITE For each of the following compare on desktop vs. on phone. Is the content the same? How is the layout different?  www2.gccaz.edu  cnn.com  espn.go.com  www.nasa.gov  www.msn.com  Facebook 7

9 UNIQUE NEEDS 1.Viewability small screen variety of sizes variety of resolutions 2.Navigation features that can be manipulated on a touchscreen 3.Minimal download size 8

10 Mouse pointer vs. touch selection 9

11 How do we deal with the variety of device display sizes?

12 MEDIA QUERIES : Conditional statements that you can include in an @media rule. Enable browser feature checks. Apply style rules based on set requirements.

13 MEDIA QUERIES EXAMPLES :

14 CONDITIONAL STYLE SHEETS: Indicates which style sheet should be loaded based upon certain criteria. Can change the way Web pages are displayed in browser windows over a certain size.

15 LAYOUT ADAPTATION Quickest and easiest way to make site mobile- friendly. The best way to deal with mobile capabilities is to create separate sets of HTML and CSS documents.

16 DECREASING PAGE LOAD TIME Speed optimization especially important to consider for mobile users Often access site over slower connections Web developers agree on many best practices for decreasing page load time Table O-2 details a few that apply equally to larger and smaller Web sites

17 MINIFIED: Compressed version of mobile style sheet and scripts.

18 MINIFIED: Remove all unnecessary characters from source code without changing its functionality. These unnecessary characters usually include white space characters, new line characters, and comments. http://www.minifier.com/ Javascript, CSS and HTML utility that compresses your code.

19 SPRITES Combination of simple image editing and CSS code that enables multiple background image loads for a Web page with a single server request Combine all background images into single image Use CSS background-image properties to control which part of the compound image is displayed in each instance http://www.w3schools.com/css/css_image_sprites.asp

20 A sprite for TASK. SPRITE EXAMPLES

21 Nav bar style rules incorporating sprites.

22 GEOLOCATION HTML5 objects and methods that enable you to obtain and work with a user’s precise location Calculate distances Display relevant maps Provide other information that pertains to a user’s location API KEY Unique string that links map-related requests to your account

23 WARNING DISTANCES ARE NOT WHAT THEY MAY SEEM TO BE!! 22 You want to go from MIT Sloan School of Management to Fenway Park

24 23 2.1 MILES

25 24 AS THE BIRD FLIES ONLY 1.35 MILES

26 AVOIDING THE APPEARANCE OF CLOAKING: Cloaking - configuring a site so different content goes to crawlers and to browsers.

27 ADDITIONAL INFORMATION Rules for Mobile Performance Optimization https://queue.acm.org/detail.cfm?id=2510122 9 Tips to Optimize Mobile Site Speed http://blog.woorank.com/2013/02/9-tips-to-optimize-mobile- site-speed/ 26

28 MORE ADDITIONAL INFORMATION Google Webmaster tools - Developing mobile sites http://support.google.com/webmasters/bin/answer.py?hl=en&ans wer=72462&topic=2370586&ctx=topic GOMOMETER http://www.howtogomo.com/en/d/test-your-site/#gomo-meter

29 28


Download ppt "LESSON 15 – UNIT 0 ADAPTING YOUR WEB SITE FOR MOBILE DEVICES."

Similar presentations


Ads by Google