1. Latest News
  2. Submit Press Release
  1. PR Home
  2. Latest News
  3. Feeds
  4. Alerts
  5. Submit Free Press Release
  6. Journalist Account
  7. PRNewswire Distribution

Website Optimization Speed Tweak - Localize External Resources

Website Optimization is announcing its new "speed tweak" article illustrating how to speed up your web pages and save bandwidth by “localizing” popular offsite widgets which often slow down or hang your web pages.

 
 
Figure 1: Slow Time to First Byte Example
Figure 1: Slow Time to First Byte Example
PRLog - Nov. 26, 2012 - BEND, Ore. -- Website Optimization is announcing its new "speed tweak" article illustrating how to speed up your web pages and save bandwidth by “localizing” popular offsite widgets which often slow down or hang your web pages. Learn how to localize offsite resources to improve web page performance.

Third-party widgets abound these days on the Web. Widgets, typically implemented with a snippet of JavaScript, are an easy way to add useful functionality to your website. The problem with all these widgets is they can cause indeterminate delays if any third party servers are slow.

What is a Widget?

Webmasters want easy ways to add useful functionality to their sites. One popular way to add functionality is to use a third-part tool, called a widget. A snippet of JavaScript is placed in the target web page, which calls an off-server JavaScript that does some useful task. There are widgets for many popular tasks, including Google Analytics which is used by more than 10 million websites. Other widgets include Jquery, survey widgets, advertising, Facebook likes, Google Plus, RSS headlines, and more.

The Problem with Widgets

The problem with relying on third party widgets is that they can slow down your site. When you load JavaScript or other resources from off-site you can cause indeterminate delays for your own site. Inconsistency in response times can cause a reduction in what Chris Roast calls "attunability" or the ability to attune to the response times of websites. Depending on how the widget is placed within your pages (HEAD, top of BODY, bottom of BODY element), a slow widget can at the least slow down the loading of your pages (bottom of BODY), and at worst hang your pages altogether so users don't see any content (top of BODY). Loading multiple widgets also introduces DNS and network overhead. An anonymous example is shown in Figure 1.

See Figure 1: Slow Time to First Byte Example

Even popular widgets can have negative effects on website performance. Google Analytics is widely used to track statistics about websites (formerly Urchin). On Thanksgiving weekend of 2012, a popular website for computers and laptops suffered because Google was slow that day (Sunday, November 24, 2012, see Figure 2). When configuring a popular Lenovo laptop (Thinkpad X230) Lenovo.com served up a page that hung for more than a minute, waiting for Google to deliver its payload to Lenovo.com.

See Figure 2: Lenovo.com Waiting for Google.com

One solution is to localize the external JavaScript to avoid the uncertain off-site delay. [ Also see: www.websiteoptimization.com/speed/tweak/google-analytics/ ] Moving the script from the top of the body to the bottom, and caching it locally improved performance by 13% in our tests. This is with a full-speed Google on board. When Google is slow or unresponsive (as it is rarely, but it happens), your site can suffer. If the external resource changes frequently you can create a CRON script to copy the external resource periodically to keep it up to date.

Another Cyber Monday Example of Slow External Resources

Another example is PC Magazine. Searching for the top 100 websites, the page was delayed while waiting for an external server to deliver a programming API (see Figure 3).

See Figure 3: PCMag.com Waiting for api.recaptcha.net

To be fair this behavior tends to happen on busy online shopping days like Cyber-monday, Black Friday, and the week before Christmas, but this third-party slowdown can happen at any time.

How to Combat Widgetitus

Many of these external resource delays are preventable. The solution is to periodically cache the resource locally on your server and serve it locally. You can use a CRON script to periodically copy the external resource over to your server. Here are some techniques you can use to minimize widget overhead.

* Cache the remote resource locally (CRON to copy periodically)

* Defer or delay loading to allow the rest of the page to render before loading JavaScript/external resources

* Load the resource in an iFrame to decouple the script from your page loads

Conclusion

External widgets can cause indeterminate delays of your webpages, which can reduce response time consistency. If your users cannot rely on consistent performance of your site, they are more likely to go elsewhere. To improve attunability, localize external resources to reduce reliance on third-party servers.

Designing for Delay in Interactive Information Retrieval

Chris Roast, Interacting with Computers 10 (1998): 87-104. Introduced the notion of attunability. Consistency in response rates is important for user satisfaction.

Diagnosing Slow Web Servers with Time to First Byte

http://www.websiteoptimization.com/speed/tweak/time-to-fi...

Slow web servers can be caused by a number of factors. You can test for slow server response times with the time time to first byte metric.

Google Analytics Is Installed On More Than 10 Million Websites

http://marketingland.com/google-analytics-is-installed-on...

Google's own conservative estimate of the number of sites using Google analytics is over 10 million sites as of April 2012. Marketing Land, Nov. 25, 2012 accessed.

Speed Optimizing Google Analytics

http://www.websiteoptimization.com/speed/tweak/google-analytics/

Learn how to speed up web pages that use Google Analytics with a few simple changes, while maintaining its advantages for faster-loading sites.

About Website Optimization:

Website Optimization provides services and techniques to improve web site performance: boosting search engine visibility for more traffic, increasing conversion rates to maximize leads and profits, revving up site speed to retain users.

Andy King’s new book titled “Website Optimization: Speed, Search Engine & Conversion Rate Secrets” offers a comprehensive set of techniques you can use to improve web site performance including boosting search engine visibility for more traffic, and increasing website conversion rates to maximize sales, leads and profits. http://www.WebSiteOptimization.com/

Photo:
http://www.prlog.org/12031056/1

--- End ---

Click to Share

Contact Email:
***@interactivemarketinginc.com Email Verified
Source:Website Optimization, LLC
Phone:541-280-3363
Zip:97702
Location:Bend - Oregon - United States
Industry:Internet, Computers
Tags:Internet, web sites, speed, offsite widgets
Shortcut:prlog.org/12031056
Verified Account Email Address
Verified Account Phone Number

Disclaimer:   Issuers of the press releases are solely responsible for the content of their press releases. PRLog can't be held liable for the content posted by others.   Report Abuse

Latest Press Releases By “

More...

Trending News...



  1. SiteMap
  2. Privacy Policy
  3. Terms of Service
  4. Copyright Notice
  5. About
  6. Advertise
Like PRLog?
9K2K1K
Click to Share