Include to favorites
Log in Logout Register
Start Login Contact Help Photos What's new
Avanced Search
FAQ
RESULTS IN: TEXT IMAGES

Hello, Guest
Login  Register
Online: 69 visitors

Blogging (2)
Business (1)
Educational (2)
Gadgets (1)
Games (2)
High Tech News (1)
Internet (0)
PC (1)
PDA (0)
Photography (0)
Science (1)
Software (1)
Wireless (1)


Browse by date

<< November 2008 >>
MonTueWedThrFriSatSun
12
3456789
10111213141516
17181920212223
24252627282930




Recent searches

Popular searches

Hot this month

Weblogs Archive


GADGETS AND GAMES DIRECTORY :: > Software Register Weblog >  Software Tech Weblogs - WEEKLYBITS.COM GADGETS AND GAMES DIRECTORY
Yahoo User Interface Blog
generated by http://wordpress.org/?v=2.3.3  en Blogger
SEND A FRIEND
Suscribing to  please login first
User: Login

Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications.
News and Articles about Designing and Developing wiht Yahoo! Libraries.Visit Yahoo! User Interface Blog
Address URLhttp://yuiblog.com/blog    Registered: 26-Apr-2008
Ads:

Send to email
Visit Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them in Performance
By Tenni Theurer
el 21-Jul-2008

This article is the sixth in a series of YUIBlog articles describing experiments conducted to learn more about optimizing web page performance (Part 1, Part 2, Part 3, Part 4, Part 5).

In Performance Research Part 1, we discussed how reducing the number of HTTP requests has the biggest impact on improving the response time and is often the easiest performance improvement to make. One technique without having to simplify the page design is to combine multiple scripts into a single script, and similarly combine multiple stylesheets into a single stylesheet.

Combining multiple files reduces the extra bytes from HTTP headers as well as potential transfer latency caused by TCP slow starts, packet losses, etc.

Figure 1 shows a graphical view of how time is spent loading a page with six separate scripts. Notice that for every file, the browser makes a separate HTTP request to retrieve the file. The gaps between the scripts indicate the time the browser takes to parse and render each script. Figure 2 shows the how time is spent loading a page with the same six scripts combined into a single script.

Figure 1. Loading a page with six separate scripts

Figure 1. Loading a page with six separate scripts

Figure 2. Loading a page with one combined script

Figure 1. Loading a page with one combined script

Combining JavaScript and CSS files as part of the development process can be burdensome. It usually makes sense during development to organize the code into logical modules as separate files. Typically, combining those separate files before product release is either a manual process or part of a build process. Every time one of the individual files is changed, the larger file needs to be re-combined and re-pushed. The cost of this across an organization as large as Yahoo! is significant.

Serve Files Faster using Combo Handler

Combo Handler, built in collaboration by Yahoo!’s Exceptional Performance team and the groups that support our CDN, is one solution to combine multiple files into a single, larger file.

Combo Handler provides a way to allow developers to maintain the logical organization of their code in separate files, while achieving the advantages of combining those into a single file as part of the final user experience. It alleviates the need for the time-consuming re-build and re-push processes. In addition, Combo Handler integrates seamlessly into a content delivery network, taking full advantage of the benefits of a CDN while reducing the drawbacks of dynamically combining separate files.

We’ve been using this service across many Yahoo! properties for some time now to help improve end users’ response times. Thanks to the YUI team, it is now available to all of you that are using the Yahoo!-hosted YUI JavaScript files. (Note: Combo-handling of CSS files is not supported at this time.) Head over to the YUI Configurator to generate combo-ready filepaths customized for your specific YUI implementation.

Combo Handler Best Practices

When using Combo Handler to combine files, pay special attention to the order in which the files are specified. Not only could there be file dependencies, browsers will only use the cached version of a file if the filename extracted from the URL is identical. For example, suppose the following smaller files (dom.js and event.js) are combined into a single larger file using Combo Handler:

   http://yui.yahooapis.com/combo?event.js&dom.js
   http://yui.yahooapis.com/combo?dom.js&event.js

In the example above, the browser will download and cache both files separately because the filenames are actually different.

Also, you may not always want to combine all files into one single file. Suppose you have one or more scripts that are shared across multiple pages in your site in addition to scripts that are only used on specific pages. By combining everything into one large file and using this file across your entire site, some pages will spend time downloading more than it really needs. Instead, take a look at different types of combinations. You might combine the scripts that are used in every page across your site into one script. Then for each page or group of pages, combine common scripts into another separate script.

Yahoo! HotJobs Combines and Reduces Response Time by 8%!

The Exceptional Performance team ran an experiment with Yahoo! HotJobs to determine the response time savings our users would benefit from by combining multiple files into a single file. Two real user test buckets were created for this experiment. In one bucket, users visited a page with six JavaScript files left uncombined. In the second bucket, users visited the same page with the six JavaScript files combined into one single file.

Combining six JavaScript files into one single JavaScript file improved performance by almost 8% on average for Yahoo! HotJobs’ users on broadband bandwidth speeds and 5% for users on lan. No design or feature changes required!

Keep in mind that the page we tested was already highly optimized for performance and had a YSlow “A” grade. The response time savings depend on a number of factors including number of files combined, browser caching patterns, etc. This experiment supported our previous research, which indicated that reducing HTTP requests is an effective way to improve response times for our end users.

Takeaways

Improve response times by combining multiple JavaScript and CSS files. Yahoo!’s Combo Handler Service is one solution that provides a way to make fewer HTTP requests for Yahoo!-hosted JavaScript files, and also leverages the benefits of a Content Delivery Network.

  • Combine scripts and stylesheets to reduce HTTP requests.
  • Look at different types of file combinations.
  • Avoid users from having to download more than they really need.
  • Pay special attention to the order in which files are combined.


Read 6 times

Suscribing to  please login first
Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them -  Tech Weblogs - WEEKLYBITS.COM  Blogger Is a collection of i

Photologs

Yahoo User Interface Blog Blogger

Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications. Yahoo! User Interface Blog News and Articles about Designing and Developing wiht Yahoo! Libraries.

Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Figure 1. Loading a page with six separate scripts - Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them This article is the sixth in a series of YUIBlog articles describing experiments conducted to learn more about optimizing web page performance (Part 1, Part 2, Part 3, Part 4, Part 5). In Performance Research Part 1, we discussed how reducing the number of HTTP requests has the biggest impact on improving the response time and [...] [..] Read complete article
Subscribe to Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Published 21-Jul-2008 by Tenni Theurer in Performance
Read 6 times. More hits in More articles Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them Images about Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Yahoo User Interface Blog Blogger

Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications. Yahoo! User Interface Blog News and Articles about Designing and Developing wiht Yahoo! Libraries.

Non-blocking JavaScript Downloads
Stoyan Stefanov. - Non-blocking JavaScript Downloads About the Author: Stoyan Stefanov is a Yahoo! web developer working for the Exceptional Performance team and leading the development of the YSlow performance tool. He also an open-source contributor, conference speaker and technical writer: his latest book is called Object-Oriented JavaScript. External JavaScript files block downloads and hurt your page performance, but there is an [...] [..] Read complete article
Subscribe to Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Published 22-Jul-2008 by Stoyan Stefanov in DevelopmentPerformance
Read 6 times. More hits in More articles Non-blocking JavaScript Downloads Images about Non-blocking JavaScript Downloads
Yahoo User Interface Blog Blogger

Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications. Yahoo! User Interface Blog News and Articles about Designing and Developing wiht Yahoo! Libraries.

Image Optimization Part 2: Selecting the Right File Format
PNG8 alpha transparency - Image Optimization Part 2: Selecting the Right File Format About the Author: Stoyan Stefanov is a Yahoo! web developer working for the Exceptional Performance team and leading the development of the YSlow performance tool. He also an open-source contributor, conference speaker and technical writer: his latest book is called Object-Oriented JavaScript. This is part 2 in an ongoing series. You can read the other parts [...] [..] Read complete article
Subscribe to Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Published 04-Nov-2008 by Stoyan Stefanov in DesignDevelopmentPerformance
Read 2 times. More hits in More articles Image Optimization Part 2: Selecting the Right File Format Images about Image Optimization Part 2: Selecting the Right File Format
Yahoo User Interface Blog Blogger

Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications. Yahoo! User Interface Blog News and Articles about Designing and Developing wiht Yahoo! Libraries.

Image Optimization, Part 3: Four Steps to File Size Reduction
About the Author: Stoyan Stefanov is a Yahoo! web developer working for the Exceptional Performance team and leading the development of the YSlow performance tool. He also an open-source contributor, conference speaker and technical writer: his latest book is called Object-Oriented JavaScript. This is part 3 in an ongoing series. You can read the other parts [...] [..] Read complete article
Subscribe to Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Published 14-Nov-2008 by Stoyan Stefanov in DevelopmentPerformance
Read 1 times. More hits in More articles Image Optimization, Part 3: Four Steps to File Size Reduction Images about Image Optimization, Part 3: Four Steps to File Size Reduction
Silicon Alley Insider Blogger

Weblog covering digital business Silicon Alley Insider Digital Business, Live From New York.

AOL Combining Tech Blogs Into Network; SAI-TechCrunch Merger?
AOL (TWX) is combining Engadget, Switched, and other huge tech blogs into a network, perhaps in response to TechCrunch proprietor Michael Arrington's merge-with-the-blogosphere [..] Read complete article
Subscribe to Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Published 10-Apr-2008 by Silicon in TWX
Read 7 times. More hits in More articles AOL Combining Tech Blogs Into Network; SAI-TechCrunch Merger? Images about AOL Combining Tech Blogs Into Network; SAI-TechCrunch Merger?
Teachable Moment Blogger

Instructional technology research and news from Trey Martindale

Trey's E-Learning Trey Martindale on e-learning, openness, environments, and other fun.

PI Community
Alison Rossett mentioned this performance improvement resource at her AECT keynote. PINOT: Performance Improvement Non-Training Solutions - Using Everything but Training to Improve Performance Technorati Tags: aect aect2008 performance [..] Read complete article
Subscribe to Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Published 07-Nov-2008 by Trey Martindale in AECT
Read 1 times. More hits in More articles PI Community Images about PI Community
Yahoo User Interface Blog Blogger

Is a collection of industrial-grade JavaScript utilities and widgets that enable you to efficiently get the most out of today’s powerful web applications. Yahoo! User Interface Blog News and Articles about Designing and Developing wiht Yahoo! Libraries.

Image Optimization Part 1: The Importance of Images
About the Author: Stoyan Stefanov is a Yahoo! web developer working for the Exceptional Performance team and leading the development of the YSlow performance tool. He also an open-source contributor, conference speaker and technical writer: his latest book is called Object-Oriented JavaScript. This is the first in a series of posts about image optimization. In this [...] [..] Read complete article
Subscribe to Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Published 29-Oct-2008 by Stoyan Stefanov in DevelopmentPerformance
Read 4 times. More hits in More articles Image Optimization Part 1: The Importance of Images Images about Image Optimization Part 1: The Importance of Images
Silicon Alley Insider Blogger

Weblog covering digital business Silicon Alley Insider Digital Business, Live From New York.

AOL Combining Tech Blogs Into Network; SAI-TechCrunch to Merge?
AOL (TWX) is combining Engadget, Switched, and other huge tech blogs into a network, perhaps in response to TechCrunch proprietor Michael Arrington's merge-with-the-blogosphere [..] Read complete article
Subscribe to Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Published 10-Apr-2008 by Silicon in TWX
Read 11 times. More hits in More articles AOL Combining Tech Blogs Into Network; SAI-TechCrunch to Merge? Images about AOL Combining Tech Blogs Into Network; SAI-TechCrunch to Merge?
Silicon Alley Insider Blogger

Weblog covering digital business Silicon Alley Insider Digital Business, Live From New York.

AOL Combining Tech Blogs Into Network, Stealing Page From TechCrunch World Domination Plan. SAI and TechCrunch To Merge?
michaelarrington.jpg - AOL Combining Tech Blogs Into Network, Stealing Page From TechCrunch World Domination Plan. SAI and TechCrunch To Merge? AOL (TWX) is combining Engadget, Switched, and other huge tech blogs into a network, perhaps in response to TechCrunch proprietor Michael Arrington's merge-with-the-blogosphere [..] Read complete article
Subscribe to Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Published 10-Apr-2008 by Silicon in TWX
Read 8 times. More hits in More articles AOL Combining Tech Blogs Into Network, Stealing Page From TechCrunch World Domination Plan. SAI and TechCrunch To Merge? Images about AOL Combining Tech Blogs Into Network, Stealing Page From TechCrunch World Domination Plan. SAI and TechCrunch To Merge?
Nerdblog Blogger

Provides news about hardware, software, notebooks, laptops, PCs, Mac, PDAs
Nerdblog.Net

Intel set to launch Centrino 2 next week
Intel is expected to launch its latest mobile platform, Centrino 2, which will deliver speedier performance and faster wireless connectivity to laptops. MacWorld [..] Read complete article
Subscribe to Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Published 11-Jul-2008 by Nerdblog in General
Read 5 times. More hits in More articles Intel set to launch Centrino 2 next week Images about Intel set to launch Centrino 2 next week
Nerdblog Blogger

Provides news about hardware, software, notebooks, laptops, PCs, Mac, PDAs
Nerdblog.Net

AMD launches Dell’s four-core Opteron boxes
New PR service part of apology program Dell’s Opteron experience hasn’t been all that fantastic. After resisting the Opteron push for so long, Dell embraced AMD’s flashy chip just as Intel started to catch up on performance and performance per watt metrics with Xeon. Then, Dell watched as AMD shot itself in the chest with the [...] [..] Read complete article
Subscribe to Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Published 16-Apr-2008 by Nerdblog in General
Read 5 times. More hits in More articles AMD launches Dell’s four-core Opteron boxes Images about AMD launches Dell’s four-core Opteron boxes
Silicon Alley Insider Blogger

Weblog covering digital business Silicon Alley Insider Digital Business, Live From New York.

iPhone Launch Grips Boston
bostonapplestore.jpg - iPhone Launch Grips Boston One of our kind Boston-based hedge-fund contributors files this report: I did a little lunchtime research to see how the iphone release is go [..] Read complete article
Subscribe to Performance Research, Part 6: Less is More ? Serving Files Faster by Combining Them
Published 11-Jul-2008 by Silicon in General
Read 3 times. More hits in More articles iPhone Launch Grips Boston Images about iPhone Launch Grips Boston

Warning We are not responsible of information posted from external feeds. Use this website at your own risk. Notice: We will not be liable for any direct or indirect loss or damage arising under this disclaimer or in connection with our website, whether arising in tort, contract, or otherwise.


Your Site here Your Site here Your site here Your site here Your site here