Top Banner
from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&st Why are some websites fast? (And others not?)
28

Unit 28 Week 2

Sep 11, 2014

Download

Technology

Dame Elizabeth Cadbury BTEC L3 ICT Unit 28 Week 2 leson
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Why are some websites fast? (And others not?)

Page 2: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Objectives• Demonstrate an understanding of a

variety of factors that affect the performance of a website

Page 3: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Website Performance• Assignment 2 – due one week today

– 21 November• Email it to me before the start of the

lesson• You should be able to complete this

task in today’s lessons!

Page 4: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Assignment 2Create a leaflet that explains to new clients of YellowZebra the various different factors that influence the performance of a website. This should include both server side and client side (user side) factors. Include the benefits of particular server side capabilities and also the limitations of the equipment and software that website users might be using to access the website.

Page 5: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

What makes a Website Slow?Part 1 – the files you’re using

Page 6: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

General Rule:Bigger files = slower to load

Page 7: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

File SizesRank the following types of file in order biggest to smallest (on average)• Audio• Video• Image (photo)• Animation

Page 8: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

So what to do?• If the files your website uses are too

big, what can you do?1. Change the physical size of the file 2. Change the file type you chose3. Increase compression

Page 9: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Change physical size• Zooming an image can make it

smaller• Download an image from google

(anything appropriate!)• Save it• Resize to 50% in both dimensions• Save again and compare file size

Page 10: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Change physical size• Images can be zoomed or cropped to

reduce the number of pixels – more pixels = bigger file size• Audio and video can be trimmed to

take less time – more seconds = bigger file size

Page 11: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

File Types• Download an image from google

(anything appropriate!)• Open it in Paint and go to

File > Save As• Save it in 3 different formats:–.jpg–.bmp–.png

Page 12: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Filet types and file size• Not all image files are the same (the

same goes for video, audio, etc.)• Some image types are uncompressed

– e.g. bmp, tiff• Others compress data in different

ways - .jpg and png both reduce the size from the .bmp but in different ways

Page 13: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Rule of thumb for images• .jpg is smaller for photos• .png is smaller (and looks better) for

vector images• .gif can move• All the other formats are not really

any good for the web

Page 14: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Compression• In some image editing programs (not

paint!) you can change the compression settings for .jpg files–A slider for image quality from 0 to 100–Smaller file sizes means worse image

quality and visa versa

Page 15: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

High Compression

Page 16: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Compression• Video and Audio can also be

compressed• MP3 is a common compressed audio file

that can be adjusted to sound better or have smaller file size• AVI or M4V are video files that can be

customised in the same way• There are lots of other video and audio

file types that can do the same

Page 17: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Assignment 2Create a leaflet that explains to new clients of YellowZebra the various different factors that influence the performance of a website. This should include both server side and client side (user side) factors. Include the benefits of particular server side capabilities and also the limitations of the equipment and software that website users might be using to access the website. You should make sure that you include some information about file types (image files, sound files, video and animation files and their different formats)…

Page 18: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

What makes a Website Slow?Part 2 – the user’s computer

Page 19: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

The User’s ComputerObviously, if your computer is slow and/or if your internet connection is slow it will affect the way websites work on your computer

Page 20: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

What can the designer do?• You can’t make users get a faster

computer• You can make sure your website

doesn’t have too many features that will slow their computer down or take ages to load over a slow connection

Page 21: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Assignment 2Create a leaflet that explains to new clients of YellowZebra the various different factors that influence the performance of a website. This should include both server side and client side (user side) factors. Include… the limitations of the equipment and software that website users might be using to access the website. You should make sure that you include some information about … user or client side factors (download speed, computer performance factors – cache memory, processor speed)…

Page 22: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

What makes a Website Slow?Part 3 – Your web server

Page 23: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Issues at your serverObviously if the server is overloaded, has slow hardware or a slow internet connection your site will seem slow

Page 24: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Reasons for Overloaded Servers• Too many people are accessing the site at once– Load balancing allows you to share one website

between several different servers to share the pain

• The server has to sent loads and loads of separate files for every single page (e.g. image files)– Combine images and use only part

of the mega image each time – this is called “sprites”

Page 25: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Reasons for Overloaded Servers• The server has to rebuild a dynamic

page every time it’s loaded and that takes more time than loading from disk–Dynamic pages are super useful (e.g.

all blogs are dynamic as are search engines) but if there’s a lot of traffic they can break

Page 26: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Server Side Capabilities• Turn compression on–Most web servers can compress (like

ZIP) the actual HTML pages and other text/code files as they are downloaded

• Use web caching–Keep a copy of a dynamic page and

send that to the user instead of rebuilding it each time

Page 27: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Assignment 2Create a leaflet that explains to new clients of YellowZebra the various different factors that influence the performance of a website. This should include both server side and client side (user side) factors. Include the benefits of particular server side capabilities … You should make sure that you include some information about … server side factors (web server capacity - bandwidth, and executions to be performed before page load)

Page 28: Unit 28 Week 2

Image from: http://antiqueradios.com/forums/viewtopic.php?f=1&t=188309&start=20

Deadline Reminder• Assignment 2 – due one week today

– 21 November• Email it to me before the start of the

lesson• You should be able to complete this

task in today’s lessons!