SlideShare a Scribd company logo
1 of 25
Testing and Improving Performance
Objectives
Assess performance
Plan usability tests
Perform browser tests
Test page loading speed
HTML 5 and CSS 3 – Illustrated Complete 2e 2
Objectives (continued)
Incorporate a spritesheet
Optimize images
Reduce the size of CSS files
Customize modernizr.js
HTML 5 and CSS 3 – Illustrated Complete 2e 3
Assess Performance
Performance: how quickly published
site loads and responds to user
interaction over the Internet
 Can't control user's connection speed
 Can identify bottlenecks by testing
 Can optimize code
HTML 5 and CSS 3 – Illustrated Complete 2e 4
Assess Performance
(continued)
Two factors impact loading time:
Size of embedded/linked files
minified: result of automated process that
removes characters not needed by browsers
HTML, CSS, and JavaScript files can be minified
optimized: result of process that compresses
image files
orphaned styles: style rules based on
selectors that don't apply to any elements
remove to reduce file size
custom build: version of library containing
only features your site uses
HTML 5 and CSS 3 – Illustrated Complete 2e 5
Assess Performance
(continued)
Two factors impact loading time
(cont'd):
Number of HTTP Requests
Browsers limit number of simultaneous
requests
Combine files of same type to reduce download
time
Spritesheet: single image file containing all
decorative images in a web page
6HTML 5 and CSS 3 – Illustrated Complete 2e
Assess Performance
(continued)
Reducing HTTP requests by
combining files:
7HTML 5 and CSS 3 – Illustrated Complete 2e
Plan Usability Tests
Best way to test usability is to collect
feedback from site's users
Important to:
 Collect feedback from likely users
 Identify questions you want all testers to
answer
 Create a script to use consistently
throughout the process
HTML 5 and CSS 3 – Illustrated Complete 2e 8
Plan Usability Tests
(continued)
A usability test
HTML 5 and CSS 3 – Illustrated Complete 2e 9
Perform Browser Tests
Helps ensure :
 Web pages are not published that display
obvious errors
 Pages are not published that don’t work as
expected for some audience members
Majority of users are likely to be using
Windows
 Important to ensure Windows system
access for testing, as well as iOS and
Android devices
HTML 5 and CSS 3 – Illustrated Complete 2e 10
Perform Browser Tests
(continued)
Icon missing on web page
11HTML 5 and CSS 3 – Illustrated Complete 2e
Test Page Loading Speed
HTML 5 and CSS 3 – Illustrated Complete 2e 12
Optimizing load time
 Improves experience of users
 Helps avoid users becoming impatient with
site
Chrome Device Mode
 Includes utility to simulate web page
loading at different connection speeds
Test Page Loading Speed
(continued)
13
Web page loading at simulated Regular
2G speed
HTML 5 and CSS 3 – Illustrated Complete 2e
Incorporate a Spritesheet
HTML 5 and CSS 3 – Illustrated Complete 2e 14
Create using image editing software to
add multiple images to single, larger
image
Results in spritesheet, with all smaller
images side-by-side or in grid
Downloads in single HTTP request
Specify as background image for
multiple elements
Use CSS to control which part is shown
Incorporate a Spritesheet
(continued)
15
Using a spritesheet in a web page
layout:
HTML 5 and CSS 3 – Illustrated Complete 2e
Optimize Images
HTML 5 and CSS 3 – Illustrated Complete 2e 16
Reduce size without affecting content
Reduce quality in a way humans can't
perceive
Performed by specialized software
Optimize Images
(continued)
17
Results of image optimization on
tinypng.com:
HTML 5 and CSS 3 – Illustrated Complete 2e
Reduce the Size of CSS
Files
18
Orphaned styles: style rules based on
selectors that no longer apply to any
elements on your web pages
Removing orphaned styles:
 Reduces amount of code to download
 Shrinks download time
 Makes it easier for other developers to
work with
HTML 5 and CSS 3 – Illustrated Complete 2e
Reduce the Size of CSS
Files (continued)
19
Minifying removes unnecessary
characters, which reduces file size
Result hard for humans to read
Makes no difference to user agent
HTML 5 and CSS 3 – Illustrated Complete 2e
Reduce the Size of CSS
Files (continued)
HTML 5 and CSS 3 – Illustrated Complete 2e 20
CSS minification tool at
cssshrink.com:
Customize modernizr.js
21
Features in your website can change
as you develop it
Include entire Modernizr library while
building site
When you're ready to publish, create a
custom build
Excludes code your site doesn't need
Reduces size of file users must download
HTML 5 and CSS 3 – Illustrated Complete 2e
Customize modernizr.js
(continued)
22
Download Modernizr page with
options selected:
HTML 5 and CSS 3 – Illustrated Complete 2e
Summary
Improving performance ensures your
content is available as quickly as
possible to users.
The best way to test the usability of
your site is by collecting feedback
from the site's users.
You should test your pages on the
most common user agents for
Windows, iOS, and Android.
HTML 5 and CSS 3 – Illustrated Complete 2e 23
Summary (continued)
Testing your website at different
connection speeds lets you see how
quickly it might load for different users.
Combining decorative images into a
single spritesheet reduces the number
of HTTP requests.
Optimizing images reduces the size of
downloads.
HTML 5 and CSS 3 – Illustrated Complete 2e 24
Summary (continued)
Removing orphaned styles and
minifying CSS files reduces the size of
downloads.
Creating a custom build of libraries
like modernizr.js can further increase
your site's download speed.
HTML 5 and CSS 3 – Illustrated Complete 2e 25

More Related Content

What's hot

Laying Out Elements with CSS
Laying Out Elements with CSSLaying Out Elements with CSS
Laying Out Elements with CSSNicole Ryan
 
Optimizing a website for search engines
Optimizing a website for search enginesOptimizing a website for search engines
Optimizing a website for search enginesNicole Ryan
 
Working with Video and Audio
Working with Video and AudioWorking with Video and Audio
Working with Video and AudioNicole Ryan
 
Social media and your website
Social media and your websiteSocial media and your website
Social media and your websiteNicole Ryan
 
Crystal report
Crystal reportCrystal report
Crystal reportEverywhere
 
Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010Slideshare
 
Presentation on HTML
Presentation on HTML Presentation on HTML
Presentation on HTML tauqeer199
 
Introduction To Flex
Introduction To FlexIntroduction To Flex
Introduction To FlexYoss Cohen
 
New Features of HTML 5.1 to Create More Flexible Web Experiences
New Features of HTML 5.1 to Create More Flexible Web ExperiencesNew Features of HTML 5.1 to Create More Flexible Web Experiences
New Features of HTML 5.1 to Create More Flexible Web ExperiencesRasin Bekkevold
 
PHP Training in Chandigarh
PHP Training in ChandigarhPHP Training in Chandigarh
PHP Training in ChandigarhWebcom Incorp
 
Content Architecture
Content ArchitectureContent Architecture
Content ArchitectureDara Pressley
 
Psd to html
Psd to htmlPsd to html
Psd to htmlLen Biel
 
13. session 13 introduction to dhtml
13. session 13   introduction to dhtml13. session 13   introduction to dhtml
13. session 13 introduction to dhtmlPhúc Đỗ
 
15. session 15 data binding
15. session 15   data binding15. session 15   data binding
15. session 15 data bindingPhúc Đỗ
 

What's hot (20)

Laying Out Elements with CSS
Laying Out Elements with CSSLaying Out Elements with CSS
Laying Out Elements with CSS
 
Optimizing a website for search engines
Optimizing a website for search enginesOptimizing a website for search engines
Optimizing a website for search engines
 
Working with Video and Audio
Working with Video and AudioWorking with Video and Audio
Working with Video and Audio
 
Social media and your website
Social media and your websiteSocial media and your website
Social media and your website
 
Crystal report
Crystal reportCrystal report
Crystal report
 
Crystal report
Crystal reportCrystal report
Crystal report
 
Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010Crystal report generation in visual studio 2010
Crystal report generation in visual studio 2010
 
C# Crystal Reports
C# Crystal ReportsC# Crystal Reports
C# Crystal Reports
 
Presentation on HTML
Presentation on HTML Presentation on HTML
Presentation on HTML
 
M02 un12 p01
M02 un12 p01M02 un12 p01
M02 un12 p01
 
Asp notes
Asp notesAsp notes
Asp notes
 
Introduction To Flex
Introduction To FlexIntroduction To Flex
Introduction To Flex
 
New Features of HTML 5.1 to Create More Flexible Web Experiences
New Features of HTML 5.1 to Create More Flexible Web ExperiencesNew Features of HTML 5.1 to Create More Flexible Web Experiences
New Features of HTML 5.1 to Create More Flexible Web Experiences
 
PHP Training in Chandigarh
PHP Training in ChandigarhPHP Training in Chandigarh
PHP Training in Chandigarh
 
Content Architecture
Content ArchitectureContent Architecture
Content Architecture
 
Web technology
Web technologyWeb technology
Web technology
 
Psd to html
Psd to htmlPsd to html
Psd to html
 
13. session 13 introduction to dhtml
13. session 13   introduction to dhtml13. session 13   introduction to dhtml
13. session 13 introduction to dhtml
 
Html5
Html5Html5
Html5
 
15. session 15 data binding
15. session 15   data binding15. session 15   data binding
15. session 15 data binding
 

Similar to Testing and Improving Performance

Performace optimization (increase website speed)
Performace optimization (increase website speed)Performace optimization (increase website speed)
Performace optimization (increase website speed)clickramanm
 
Improving web site performance and scalability while saving
Improving web site performance and scalability while savingImproving web site performance and scalability while saving
Improving web site performance and scalability while savingmdc11
 
Browser core red bus presentation
Browser core red bus presentation Browser core red bus presentation
Browser core red bus presentation redBus India
 
Chrome Developer Tools - Pro Tips & Tricks
Chrome Developer Tools - Pro Tips & TricksChrome Developer Tools - Pro Tips & Tricks
Chrome Developer Tools - Pro Tips & TricksMars Devs
 
How to optimize your Magento store
How to optimize your Magento store How to optimize your Magento store
How to optimize your Magento store Rasbor.com
 
Site Speed Optimization for Elementor Websites
Site Speed Optimization for Elementor WebsitesSite Speed Optimization for Elementor Websites
Site Speed Optimization for Elementor WebsitesJeleen Cubillas
 
HTML5 and CSS3 Unit A
HTML5 and CSS3 Unit AHTML5 and CSS3 Unit A
HTML5 and CSS3 Unit Avanoosterhout
 
Building high performing web pages
Building high performing web pagesBuilding high performing web pages
Building high performing web pagesNilesh Bafna
 
Frontend performance
Frontend performanceFrontend performance
Frontend performancesacred 8
 
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital MarketersSearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital MarketersDistilled
 
Front-End Performance Optimizing
Front-End Performance OptimizingFront-End Performance Optimizing
Front-End Performance OptimizingMichael Pehl
 
Front-End Performance Optimizing
Front-End Performance OptimizingFront-End Performance Optimizing
Front-End Performance OptimizingMichael Pehl
 
DrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizingDrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizingAshok Modi
 
Android Chromium Rendering Pipeline
Android Chromium Rendering PipelineAndroid Chromium Rendering Pipeline
Android Chromium Rendering PipelineHyungwook Lee
 
Converting Any Website to Wordpress
Converting Any Website to WordpressConverting Any Website to Wordpress
Converting Any Website to WordpressIJERDJOURNAL
 
Single page applications
Single page applicationsSingle page applications
Single page applicationsDiego Cardozo
 
Creating Effective Web Pages Creating HTML Documents
Creating Effective Web Pages Creating HTML Documents Creating Effective Web Pages Creating HTML Documents
Creating Effective Web Pages Creating HTML Documents webhostingguy
 

Similar to Testing and Improving Performance (20)

Performace optimization (increase website speed)
Performace optimization (increase website speed)Performace optimization (increase website speed)
Performace optimization (increase website speed)
 
Improving web site performance and scalability while saving
Improving web site performance and scalability while savingImproving web site performance and scalability while saving
Improving web site performance and scalability while saving
 
Browser core red bus presentation
Browser core red bus presentation Browser core red bus presentation
Browser core red bus presentation
 
Chrome Developer Tools - Pro Tips & Tricks
Chrome Developer Tools - Pro Tips & TricksChrome Developer Tools - Pro Tips & Tricks
Chrome Developer Tools - Pro Tips & Tricks
 
How to optimize your Magento store
How to optimize your Magento store How to optimize your Magento store
How to optimize your Magento store
 
Site Speed Optimization for Elementor Websites
Site Speed Optimization for Elementor WebsitesSite Speed Optimization for Elementor Websites
Site Speed Optimization for Elementor Websites
 
HTML5 and CSS3 Unit A
HTML5 and CSS3 Unit AHTML5 and CSS3 Unit A
HTML5 and CSS3 Unit A
 
Building high performing web pages
Building high performing web pagesBuilding high performing web pages
Building high performing web pages
 
Frontend performance
Frontend performanceFrontend performance
Frontend performance
 
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital MarketersSearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
SearchLove San Diego 2018 | Mat Clayton | Site Speed for Digital Marketers
 
A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net  A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net
 
Front-End Performance Optimizing
Front-End Performance OptimizingFront-End Performance Optimizing
Front-End Performance Optimizing
 
Front-End Performance Optimizing
Front-End Performance OptimizingFront-End Performance Optimizing
Front-End Performance Optimizing
 
DrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizingDrupalCampLA 2011 - Drupal frontend-optimizing
DrupalCampLA 2011 - Drupal frontend-optimizing
 
5 critical-optimizations.v2
5 critical-optimizations.v25 critical-optimizations.v2
5 critical-optimizations.v2
 
Android Chromium Rendering Pipeline
Android Chromium Rendering PipelineAndroid Chromium Rendering Pipeline
Android Chromium Rendering Pipeline
 
Converting Any Website to Wordpress
Converting Any Website to WordpressConverting Any Website to Wordpress
Converting Any Website to Wordpress
 
Single page applications
Single page applicationsSingle page applications
Single page applications
 
Front-end performances
Front-end performancesFront-end performances
Front-end performances
 
Creating Effective Web Pages Creating HTML Documents
Creating Effective Web Pages Creating HTML Documents Creating Effective Web Pages Creating HTML Documents
Creating Effective Web Pages Creating HTML Documents
 

More from Nicole Ryan

Python Dictionaries and Sets
Python Dictionaries and SetsPython Dictionaries and Sets
Python Dictionaries and SetsNicole Ryan
 
Creating and Processing Web Forms
Creating and Processing Web FormsCreating and Processing Web Forms
Creating and Processing Web FormsNicole Ryan
 
Organizing Content with Lists and Tables
Organizing Content with Lists and TablesOrganizing Content with Lists and Tables
Organizing Content with Lists and TablesNicole Ryan
 
Chapter 12 Lecture: GUI Programming, Multithreading, and Animation
Chapter 12 Lecture: GUI Programming, Multithreading, and AnimationChapter 12 Lecture: GUI Programming, Multithreading, and Animation
Chapter 12 Lecture: GUI Programming, Multithreading, and AnimationNicole Ryan
 
Chapter 11: Object Oriented Programming Part 2
Chapter 11: Object Oriented Programming Part 2Chapter 11: Object Oriented Programming Part 2
Chapter 11: Object Oriented Programming Part 2Nicole Ryan
 
Intro to Programming: Modularity
Intro to Programming: ModularityIntro to Programming: Modularity
Intro to Programming: ModularityNicole Ryan
 
Programming Logic and Design: Arrays
Programming Logic and Design: ArraysProgramming Logic and Design: Arrays
Programming Logic and Design: ArraysNicole Ryan
 
Programming Logic and Design: Working with Data
Programming Logic and Design: Working with DataProgramming Logic and Design: Working with Data
Programming Logic and Design: Working with DataNicole Ryan
 
Setting up your development environment
Setting up your development environmentSetting up your development environment
Setting up your development environmentNicole Ryan
 
Dynamic vs static
Dynamic vs staticDynamic vs static
Dynamic vs staticNicole Ryan
 
Working with Databases and MySQL
Working with Databases and MySQLWorking with Databases and MySQL
Working with Databases and MySQLNicole Ryan
 
Using arrays with PHP for forms and storing information
Using arrays with PHP for forms and storing informationUsing arrays with PHP for forms and storing information
Using arrays with PHP for forms and storing informationNicole Ryan
 
Tables and forms accessibility and microformats
Tables and forms accessibility and microformatsTables and forms accessibility and microformats
Tables and forms accessibility and microformatsNicole Ryan
 
Creating and styling forms
Creating and styling formsCreating and styling forms
Creating and styling formsNicole Ryan
 
Creating and styling tables
Creating and styling tablesCreating and styling tables
Creating and styling tablesNicole Ryan
 
Files and Directories in PHP
Files and Directories in PHPFiles and Directories in PHP
Files and Directories in PHPNicole Ryan
 
Handling User Input and Processing Form Data
Handling User Input and Processing Form DataHandling User Input and Processing Form Data
Handling User Input and Processing Form DataNicole Ryan
 

More from Nicole Ryan (18)

Inheritance
InheritanceInheritance
Inheritance
 
Python Dictionaries and Sets
Python Dictionaries and SetsPython Dictionaries and Sets
Python Dictionaries and Sets
 
Creating and Processing Web Forms
Creating and Processing Web FormsCreating and Processing Web Forms
Creating and Processing Web Forms
 
Organizing Content with Lists and Tables
Organizing Content with Lists and TablesOrganizing Content with Lists and Tables
Organizing Content with Lists and Tables
 
Chapter 12 Lecture: GUI Programming, Multithreading, and Animation
Chapter 12 Lecture: GUI Programming, Multithreading, and AnimationChapter 12 Lecture: GUI Programming, Multithreading, and Animation
Chapter 12 Lecture: GUI Programming, Multithreading, and Animation
 
Chapter 11: Object Oriented Programming Part 2
Chapter 11: Object Oriented Programming Part 2Chapter 11: Object Oriented Programming Part 2
Chapter 11: Object Oriented Programming Part 2
 
Intro to Programming: Modularity
Intro to Programming: ModularityIntro to Programming: Modularity
Intro to Programming: Modularity
 
Programming Logic and Design: Arrays
Programming Logic and Design: ArraysProgramming Logic and Design: Arrays
Programming Logic and Design: Arrays
 
Programming Logic and Design: Working with Data
Programming Logic and Design: Working with DataProgramming Logic and Design: Working with Data
Programming Logic and Design: Working with Data
 
Setting up your development environment
Setting up your development environmentSetting up your development environment
Setting up your development environment
 
Dynamic vs static
Dynamic vs staticDynamic vs static
Dynamic vs static
 
Working with Databases and MySQL
Working with Databases and MySQLWorking with Databases and MySQL
Working with Databases and MySQL
 
Using arrays with PHP for forms and storing information
Using arrays with PHP for forms and storing informationUsing arrays with PHP for forms and storing information
Using arrays with PHP for forms and storing information
 
Tables and forms accessibility and microformats
Tables and forms accessibility and microformatsTables and forms accessibility and microformats
Tables and forms accessibility and microformats
 
Creating and styling forms
Creating and styling formsCreating and styling forms
Creating and styling forms
 
Creating and styling tables
Creating and styling tablesCreating and styling tables
Creating and styling tables
 
Files and Directories in PHP
Files and Directories in PHPFiles and Directories in PHP
Files and Directories in PHP
 
Handling User Input and Processing Form Data
Handling User Input and Processing Form DataHandling User Input and Processing Form Data
Handling User Input and Processing Form Data
 

Recently uploaded

Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactisticshameyhk98
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answersdalebeck957
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsNbelano25
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 

Recently uploaded (20)

Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

Testing and Improving Performance

  • 1. Testing and Improving Performance
  • 2. Objectives Assess performance Plan usability tests Perform browser tests Test page loading speed HTML 5 and CSS 3 – Illustrated Complete 2e 2
  • 3. Objectives (continued) Incorporate a spritesheet Optimize images Reduce the size of CSS files Customize modernizr.js HTML 5 and CSS 3 – Illustrated Complete 2e 3
  • 4. Assess Performance Performance: how quickly published site loads and responds to user interaction over the Internet  Can't control user's connection speed  Can identify bottlenecks by testing  Can optimize code HTML 5 and CSS 3 – Illustrated Complete 2e 4
  • 5. Assess Performance (continued) Two factors impact loading time: Size of embedded/linked files minified: result of automated process that removes characters not needed by browsers HTML, CSS, and JavaScript files can be minified optimized: result of process that compresses image files orphaned styles: style rules based on selectors that don't apply to any elements remove to reduce file size custom build: version of library containing only features your site uses HTML 5 and CSS 3 – Illustrated Complete 2e 5
  • 6. Assess Performance (continued) Two factors impact loading time (cont'd): Number of HTTP Requests Browsers limit number of simultaneous requests Combine files of same type to reduce download time Spritesheet: single image file containing all decorative images in a web page 6HTML 5 and CSS 3 – Illustrated Complete 2e
  • 7. Assess Performance (continued) Reducing HTTP requests by combining files: 7HTML 5 and CSS 3 – Illustrated Complete 2e
  • 8. Plan Usability Tests Best way to test usability is to collect feedback from site's users Important to:  Collect feedback from likely users  Identify questions you want all testers to answer  Create a script to use consistently throughout the process HTML 5 and CSS 3 – Illustrated Complete 2e 8
  • 9. Plan Usability Tests (continued) A usability test HTML 5 and CSS 3 – Illustrated Complete 2e 9
  • 10. Perform Browser Tests Helps ensure :  Web pages are not published that display obvious errors  Pages are not published that don’t work as expected for some audience members Majority of users are likely to be using Windows  Important to ensure Windows system access for testing, as well as iOS and Android devices HTML 5 and CSS 3 – Illustrated Complete 2e 10
  • 11. Perform Browser Tests (continued) Icon missing on web page 11HTML 5 and CSS 3 – Illustrated Complete 2e
  • 12. Test Page Loading Speed HTML 5 and CSS 3 – Illustrated Complete 2e 12 Optimizing load time  Improves experience of users  Helps avoid users becoming impatient with site Chrome Device Mode  Includes utility to simulate web page loading at different connection speeds
  • 13. Test Page Loading Speed (continued) 13 Web page loading at simulated Regular 2G speed HTML 5 and CSS 3 – Illustrated Complete 2e
  • 14. Incorporate a Spritesheet HTML 5 and CSS 3 – Illustrated Complete 2e 14 Create using image editing software to add multiple images to single, larger image Results in spritesheet, with all smaller images side-by-side or in grid Downloads in single HTTP request Specify as background image for multiple elements Use CSS to control which part is shown
  • 15. Incorporate a Spritesheet (continued) 15 Using a spritesheet in a web page layout: HTML 5 and CSS 3 – Illustrated Complete 2e
  • 16. Optimize Images HTML 5 and CSS 3 – Illustrated Complete 2e 16 Reduce size without affecting content Reduce quality in a way humans can't perceive Performed by specialized software
  • 17. Optimize Images (continued) 17 Results of image optimization on tinypng.com: HTML 5 and CSS 3 – Illustrated Complete 2e
  • 18. Reduce the Size of CSS Files 18 Orphaned styles: style rules based on selectors that no longer apply to any elements on your web pages Removing orphaned styles:  Reduces amount of code to download  Shrinks download time  Makes it easier for other developers to work with HTML 5 and CSS 3 – Illustrated Complete 2e
  • 19. Reduce the Size of CSS Files (continued) 19 Minifying removes unnecessary characters, which reduces file size Result hard for humans to read Makes no difference to user agent HTML 5 and CSS 3 – Illustrated Complete 2e
  • 20. Reduce the Size of CSS Files (continued) HTML 5 and CSS 3 – Illustrated Complete 2e 20 CSS minification tool at cssshrink.com:
  • 21. Customize modernizr.js 21 Features in your website can change as you develop it Include entire Modernizr library while building site When you're ready to publish, create a custom build Excludes code your site doesn't need Reduces size of file users must download HTML 5 and CSS 3 – Illustrated Complete 2e
  • 22. Customize modernizr.js (continued) 22 Download Modernizr page with options selected: HTML 5 and CSS 3 – Illustrated Complete 2e
  • 23. Summary Improving performance ensures your content is available as quickly as possible to users. The best way to test the usability of your site is by collecting feedback from the site's users. You should test your pages on the most common user agents for Windows, iOS, and Android. HTML 5 and CSS 3 – Illustrated Complete 2e 23
  • 24. Summary (continued) Testing your website at different connection speeds lets you see how quickly it might load for different users. Combining decorative images into a single spritesheet reduces the number of HTTP requests. Optimizing images reduces the size of downloads. HTML 5 and CSS 3 – Illustrated Complete 2e 24
  • 25. Summary (continued) Removing orphaned styles and minifying CSS files reduces the size of downloads. Creating a custom build of libraries like modernizr.js can further increase your site's download speed. HTML 5 and CSS 3 – Illustrated Complete 2e 25