CHAPTER 15 WEBPAGE OPTIMIZATION. LEARNING OBJECTIVES How to test your web-page performance How browser and server interactions impact performance What.

Slides:



Advertisements
Similar presentations
Optimizing Websites with YSlow Tom Lianza Co-Founder Wishlisting.com Tom Lianza Co-Founder Wishlisting.com.
Advertisements

CS193H: High Performance Web Sites Lecture 12: Rule 8 – Make JavaScript and CSS External Steve Souders Google
Web Performance Meetup 1 Web Performance 101 Jeremy
Web Performance Meetup 1 Web Performance Toolbelt Jeremy
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
Client side performance in Web based Banking applications Divakar Prabhu Infosys Limited (NASDAQ: INFY)
CHAPTER 2 INTEGRATING IMAGES. LEARNING OBJECTIVES How to use the tag to place an image within a Web page The difference between relative and absolute.
Today’s objectives Site performance Padding, Margins, Borders
Video, audio, embed, iframe, HTML Form
CHAPTER 30 THE HTML 5 FORMS PROCESSING. LEARNING OBJECTIVES What the three form elements are How to use the HTML 5 tag to specify a list of words’ form.
Turners SharePoint Web Site How we did it. 2 Page Anatomy Custom Search Web Part Custom Search Web Part Data Form Web Parts Content Query Web Part HTML.
Chapter 16 Dynamic HTML and Animation The Web Warrior Guide to Web Design Technologies.
Chapter 1 Understanding the Web Design Environment
High Performance Websites (Based on Steve Souder’s lecture) By Bhoomi Patel.
CHAPTER 31 BROWSER IDENTIFICATION. LEARNING OBJECTIVES What a “hack” is and why Web developers try to avoid them How to determine a browser’s user-agent.
Mark Phillip markphillip.com 200s, 304s, Expires Headers, HTTP Compression, And You.
Performance, SEO, Accessibility Ivan Zhekov Telerik Corporation
CHAPTER 18 INTEGRATING AUDIO AND VIDEO. LEARNING OBJECTIVES How the HTML 5 and tag pair can be used to include a video file within a webpage How video.
Chapter 1 Variables in the Web Design Environment
INTRODUCTION TO WEB DATABASE PROGRAMMING
CHAPTER 1 GETTING STARTED WITH HTML. LEARNING OBJECTIVES How a Web browser downloads and processes an HTML page for display What is the purpose of a Web.
1 Chapter 2 & Chapter 4 §Browsers. 2 Terms §Software §Program §Application.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Chapter 19: Adding JavaScript
10 Adding Interactivity to a Web Site Section 10.1 Define scripting Summarize interactivity design guidelines Identify scripting languages Compare common.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
CSCE Chapter 5 (Links, Images, & Multimedia) CSCE General Applications Programming Benito Mendoza 1 By Benito Mendoza Department.
Web Page Design I Basic Computer Terms “How the Internet & the World Wide Web (www) Works”
Creating Styles and Style Sheets.  CSS styles don’t communicate in nice clear English, they have their own language.  P { color: red; font-size: 1.5.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 6: Links.
JavaScript, Fourth Edition
Introduction to HTML. What is HTML?  Hyper Text Markup Language  Not a programming language but a markup language  Used for presentation and layout.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
How the Web Works Building a Website – Lesson 1. How People Access the Web Browsers People access websites using software called a web browser. To view.
Empirical Quantification of Opportunities for Content Adaptation in Web Servers Michael Gopshtein and Dror Feitelson School of Engineering and Computer.
Offline Web Apps - an offline web application is a list of URLs for HTML, CSS, JavaScript, images, or any other kind of resource. Most browsers have offline.
PERFORMANCE ENHANCEMENT IN ASP.NET By Hassan Tariq Session #1.
Web Design Vocab 7 Absolute, Cache, Codec, CSS, Gamma.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Restricted © Siemens AG All rights reserved A Developer’s Insights Into Performance Optimizations for Mobile Web Apps CT DC AA EM LP2 | June 2015.
COMP 2923 A2 Website Development 101 Danny Silver JSOCS, Acadia University.
INTRODUCTION TO HTML5 New HTML5 User Interface and Attributes.
Website Design, Development and Maintenance ONLY TAKE DOWN NOTES ON INDICATED SLIDES.
Browser Compatibility Testing, using different browsers Conditional Statements.
Microsoft® Small Basic Flickr, ImageList, and Network Objects Estimated time to complete this lesson: 1 hour.
THE FUTURE IS HERE: APPLICATION- AWARE CACHING BY ASHOK ANAND.
MICROSOFT AJAX CDN (CONTENT DELIVERY NETWORK) Make Your ASP.NET site faster to retrieve.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
Enhance Your Page Load Speed And Improve Traffic.
(class #2) CLICK TO CONTINUE done by T Batchelor.
CHAPTER 16 SEARCH ENGINE OPTIMIZATION. LEARNING OBJECTIVES How to monitor your site’s traffic What are the pros and cons of keyword advertising within.
Chapter 17 The Need for HTML 5.
Web Basics: HTML/CSS/JavaScript What are they?
Dreamweaver – Setting up a Site and Page Layouts
Objective % Select and utilize tools to design and develop websites.
50 Performance Tricks to Make your HTML5 apps and sites Faster
CISC103 Web Development Basics: Web site:
Chapter 4: HTML5 Media - <video> & <audio>
Web Caching? Web Caching:.
Objective % Select and utilize tools to design and develop websites.
Direct Internet 3 Iridium Proprietary and Confidential 9/18/2018.
Playing Audio (Part 1).
Client-Side Internet and Web Programming
Flight prices.
Client-Server Model: Requesting a Web Page
Yale Digital Conference 2019
Presentation transcript:

CHAPTER 15 WEBPAGE OPTIMIZATION

LEARNING OBJECTIVES How to test your web-page performance How browser and server interactions impact performance What impact image file size and resolution have on download times How to reduce JavaScript download overhead by obfuscating your code How using multiple servers for different resource types may load-balance resource requests How to improve download performance for text-based content by directing the server to compress the content using gzip

SITES TO TEST YOUR WEB SITE’S PERFORMANCE

DEMO WEB PAGE Video Tag Not Supported

REVISITING BROWSER/SERVER INTERACTIONS

SOME BROWSERS SUPPORT PARALLEL DOWNLOAD OPERATIONS

LOAD BALANCING

REDUCE YOUR IMAGE RESOLUTION Do not simply use the tag width and height Use a program such as PhotoShop to reduce the resolution to 72 DPI and the size to the height and width you need

REDUCE JAVASCRIPT ( OBFUSCATOR.COM/) OBFUSCATOR.COM/

SAMPLE OBFUSCATION

MOVE JAVASCRIPT CODE TO THE BOTTOM OF YOUR PAGE Some browsers will block downloads until JavaScript is processed

CONSIDER MULTIPLE SERVERS Video Tag Not Supported

CONSIDER A CONTENT-DELIVERY NETWORK Depending on the location of your server as well as the location of the user browsing your site, your page’s download time will differ. For a user across the world, for example, the content must travel through many more network hops than it would for a user down the street. To reduce such network overhead, many sites use content-delivery networks, which are collections of servers distributed either across the country or around the globe, depending on your needs. The content-delivery networks are high-performance servers that can deliver content quickly. To use such a server, you would acquire space, upload your content, and then refer to the server within your HTML page.

COMPRESSING TEXT-BASED CONTENT

REDUCING JAVASCRIPT AND EXTERNAL CSS FILE REFERENCES As you have learned, when your site uses JavaScript or CSS, you can use one or more external file references to integrate content into your HTML file. If you can combine multiple files into one, you may improve the download performance.

MOVE CSS DEFINITIONS TO THE TOP OF YOUR PAGE As your browser downloads your HTML content, the browser will use CSS style definitions to begin to render the page. To improve page-loading performance, you should place your CSS definitions at the top of your page. Otherwise, to avoid having to re-render content, the browser may stop the rendering process until it has encountered all of your CSS definitions.

AVOID REDIRECTS When Web developers release new sites, they will often place a redirect within the page of an old site that directs the browser to automatically move the user to the new site. Although such redirects are convenient for the developers, they introduce a level of additional HTTP requests that add overhead to the downloading process. As such, you should try to avoid or at least reduce such redirects within your pages.

CONTROLLING BROWSER CACHING As you know, after you download an HTML page and the corresponding resource files, such as images, your browser will normally cache the contents in a temporary storage location on your disk. If you later return to the site, your browser can use the cached content as opposed to downloading the files from the Web server. The browser can retrieve the cached-page content much more quickly, which improves the user’s experience. Behind the scenes, the browser examines each page’s cache settings. Developers will sometimes disable caching to insure the user must always retrieve the most recent content from the server. Other developers will direct the browser to check whether or not the server has a more current version of the content, and if so, to download it. Unfortunately, checking for updated content also takes time and adds overhead. If your page has static content that will not change, you can use a metadata tag to set your page’s expiration date to a date far into the future. If a page has expired, the browser will request new content from the server. If the page is not expired, the browser can use the cached content.

SAMPLE CACHE CONTROL

REAL WORLD: WHAT’S MY IP?

SUMMARY As users move from site to site across the Web, they have expectations with respect to each site’s performance. As a general rule, your site should download in less than 2.5 seconds. If users have to wait beyond a few seconds for your page, many will move on to other sources of content. As you design your webpages, you need to keep performance in mind. Across the Web, there are several sites you can use to test your page performance. Ways you can improve your site’s performance include: Moving images, videos, and audios from your home page to a secondary page. Reducing image size and resolution. Load-balancing server requests by using multiple servers for different content types. Directing your server to use gzip compress for text-based content. Setting the cache expiration date to a date far in the future for static content.