Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

31
Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003

Transcript of Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Page 1: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Optimizing Web pages

Hyun Joo LEELIS 385 T: Information Architecture and Design

March 27, 2003

Page 2: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

ContentsIntroduction

Speeding Up by Markup

Graphical design optimization

Optimizing and IA

Conclusion

Page 3: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Making Web pages user-friendly

“Fast response times are the most important design criterion for web pages” (Jakob Nielsen, 2000).

The increasing size of digital media and limited bandwidth make it difficult for users to access Web pages.

Page 4: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Maximum Page Size

“Users will wait at most 8 to 10 seconds for a Web page to display” (Newsbytes, 2001).

It means 30-40 Kbytes total in terms of page size at 56.6 Kbps bandwidth (Table 1).

Why important?

- Maximizing potential Audience

- Proliferation of Handheld/Wireless Web

Page 5: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Table 1. Bandwidth vs. speed(King, 2003, p. 20)

BandwidthAttention Threshold

1 Sec 2 Secs 10 Secs

56.6 Kbps 2KB 4KB 34KB

ISDN 8KB 16KB 150KB

T1 100KB 200KB 2MB

Page 6: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

How Web connections work

Internet

Web server

Client

Web browser

Server

HTTP request

HTTP response

http://www.aol.com

Page 7: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

History of web performance

After the Birth of the web

HCI researchers – online environments, network latency

User satisfaction

the effects of fixed/variable response times on user satisfaction

In the late 1990s~early 2000s

Shackel’s likability by studying the effects of download delays on user perception of web sites.

Page 8: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Speeding up by Markup: HTML/XHTML/DHTML Optimization

Removing white space, comments

Omitting redundant tags and attributes

*Automatic Optimization

Head minimization

Tables

Height/Width <img src="../images/heightwidth/palette.gif" width="160"

height="160">

Page 9: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

439 Bytes<table id="white space" width ="800" >

<tr>

<td>speed </td>

<td>me</td>

<td> up </td>

</tr>

</table>

343 Bytes<table id="white space" width ="800">

<tr>

<td>speed </td>

<td>me</td>

<td> up </td>

</tr>

</table>

283 Bytes<table id="best"></tr><td>speed</td><td>me</td><td>up</td></tr></table>

Page 10: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

alt Values

For Vision-impaired users (Accessibility) : rely on alt values to navigate graphic-rich sites.

For non-functional graphicsFor non-graphical browsers

<img src=“/images/global/webprojectlogo.gif" alt=“our logo"> <img src=“h.gif" alt=“”width=”1” height=“1”> <img src=“h.gif" alt=“explain.com”width=”1” height=“1”>

Page 11: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Minimize HTTP request

Each object-HTML pages, images, multimedia, external style sheets, JavaScript takes one HTTP request

Convert images and rollovers into text, consolidating images, and optimizing JavaScripts and style sheets

Page 12: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Complex tables= Slow Rendering Speed

Give browsers as much information as possible

Reduce complexity – simplify, layer

Use CSS to style, fixed table layout option

Substitute background colors for background images

Or do not use tables at all

- get rid of tables altogether and use div and CSS2

Page 13: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

LayerBreaking up tables into separate tables

Perceived speed -Use a simple fast-loading table at the

top and an above-the-fold table underneath

-Include useful content, e.g. a search box or navigation bar

Page 14: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Cashing files

Re-using filesPreloading Graphics

<img src="large_graphic.gif" height=1 width=1 alt="">

Cache : a small temporary storage area of the hard

drive where browsers keep files while they display them. Any file that is in the cache can be displayed repeatedly without being downloaded again and again

Page 15: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Graphical Design Optimization

Optimizing Web graphics - balancing between maximizing the quality of

graphics and minimizing the download time.

Reducing image file size – the number of colors, resolution, dimension, and quality of web-bound images

color depthresolution compression

Page 16: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Capturing and Preparing Images

Simplify your design

Creatively crop

Minimize HTTP request

Use thumbnails

Page 17: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Color

Indexed colors

RGB(true color)

Optimized “web-safe” color pallete.

Page 18: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Resolution

Computer monitors – 72 ppi (pixels per inch)

Saving files at a resolution of 72 ppi is a good way to minimize the file.

Page 19: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Compression

Lossy : creates smaller files by discarding some information

Lossless : never discards any information

Page 20: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

GIF (Graphics Interchange Format)

Indexed color image format

CompuServe 1987

Support animation, transparency, interlacing

Lossless compression

8 bits per pixel (2^8=256 colors) http://www.webreference.com/dev/graphics/reduce.html

Page 21: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Original GIF24.8K

Size=13.21K 3 sec @56.6Kbps0% ditherCustom palette114 colors

Original image indexed colors Optimized “Web-safe” color palette

Page 22: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

JPEG

Compression algorithm

Compress realistic true-color, grayscale images (e.g. photographs, fine artwork)

Supports 24 bits of color depth (2^24=16.7 million)

Lossy compressionhttp://www.webreference.com/dev/graphics/compress.html

Page 23: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Save for Web

Size=70.9 KB (72,663 bytes)

Original JPEG image

Size=11.9 KB (12,259 bytes)Photoshop Save for Web, optimized JPEG imageImage quality=60%

http://webdevfp.uwyo.edu/webdesign/optimizing/graphics/imageready.html

Page 24: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

PNG (Portable Network Graphics)

Supports indexed, true-color up to 48-bit RGB, and grayscale modes

Supported by newer browsers

Designed for the Web

Advantage

- Variable transparency

- Interlacing

Page 25: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

GIF/PNG Optimization

Minimize bit depth and maximize cropping

Consider interlacing larger files, to give preview

Convert graphic text to styled text wherever possible

Page 26: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Newer version

JPEG 2000, Exif, PNP, ART,Wavelet, Bravo, FlashPix

- challenge the GIF, JPEG monopoly compression

Page 27: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Other techniques

Cropping

Thumbnail

Interlacing

Page 28: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Enhancing perceived Speed using Flash

The most popular animation format on the Web.

Small, bandwidth Friendly

95 % percent of all browsers

Perceived Speedhttp://disney.go.com/park/bases/playhousebase/today/flash/index.html

Page 29: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Optimizing and IA

Speeding Up

Graphic/media-rich Design

?Balancing

Designers’ perspectives

Users’ perspectives

A role of IA

Page 30: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

Conclusion

Optimizing Web pages by balancing between the speeding up and graphic-rich design using user-centered aspects

- the tasks that IA should do.Speed is a key component of usability and an important determinant of system acceptability.

Let’s make Web sites that people

actually use!

Page 31: Optimizing Web pages Hyun Joo LEE LIS 385 T: Information Architecture and Design March 27, 2003.

감사합니다 !