Showing posts with label Website. Show all posts
Showing posts with label Website. Show all posts

Friday, October 28, 2011

20 Best Practices for Speeding up Your Website


ShareThis

1.    Make fewer HTTP requests
•    Use CSS Image Sprites & Image Maps
•    Combine multiple script/css files into one
•    Use inline embedded images in the HTML

2.    Use a CDN
3.    Add an Expires or a Cache-Control Header
4.    Gzip components
5.    Put stylesheets at the top & scripts at the bottom
6.    Make JavaScript and CSS external
7.    Reduce DNS lookups
8.    Minify JavaScript, CSS and HTML
9.    Avoid Redirects
10.    Make Ajax cacheable
11.    Remove duplicate scripts
12.    Configure ETags
13.    Use GET for AJAX Requests
14.    Post-load Components
15.    Preload Components
16.    Reduce the Number of DOM Elements and events
17.    Split Components Across Domains
18.    Minimize the Number of iframes
19.    Optimize Images
20.    Keep Components under 25K

Spectrum of Modern Web Applications


ShareThis

I am more fascinated these days with the new approaches developers are discovering to author modern web aps. Java Script and JQuery is the center of the attraction in all the approaches. Sharing here, the summary of what I read in the documentation of a Microsoft initiative called Project Silk  to author modern web aps..

Spectrum of Web Applications

There is a spectrum of web applications being built today that can be grouped into four application types. These types of web applications are categorized by their full-page reload behavior and the amount of client-side interactivity they provide. Each application type provides a richer experience than the one listed before it.

  • Static sites. These consist of static HTML pages, CSS, and images. They are static in that as each page is navigated to, the browser performs a full-page reload and there is no interaction with portions of the page. In addition, the page does not change no matter who requests it or when.
  • Server rendered. In this model, the server dynamically assembles the pages from one or more source files and can incorporate data from another source during the rendering. The client-side script in these applications might perform some data validation, simple hover effects, or Ajax calls. As each page is navigated to, the browser performs a full-page reload. ASP.NET applications that don't make heavy use of client-side JavaScript are examples of server-rendered web applications.
  • Hybrid design. This model is similar to the server-rendered web application, except that it relies heavily on client-side JavaScript to deliver an engaging experience. This type of application has islands of interactivity within the site that do not require full-page reloads to change the UI as well as some pages that do require a full-page reload. Mileage Stats is an example of a hybrid design.
  • Single-page interface. In this model, a full-page load happens only once. From that point on, all page changes and data loading is performed without a full-page reload. Hotmail, Office Live, and Twitter are examples of single-page-interface web applications.

Characteristics of Modern Web Applications

While there are many types of modern web applications, addressing many different needs, they all have some characteristics in common.

  • They are standards-focused. To have the broadest reach across multiple platforms and devices, applications attempt to implement the current and evolving standards and adopt future standards once ratified.
  • They are interactive. Modern web applications keep the user engaged by providing constant feedback on their actions. This feedback can come in the form of messages, animations to hide or show elements, mouse-over effects, drag and drop feedback, the automatic refreshing of screen data, animation of various elements, or the implementation of fade-in or fade-out effects. Interactive applications leverage the fast JavaScript engines in modern browsers to perform their client-side tasks.
  • They limit full-page reloads. Modern web applications seek to limit the number of full-page reloads. Reloads are much slower than a localized Ajax call to update a portion of the UI. Full-page reloads also limit the ability to animate state or page changes. By not performing a full-page reload, users can be kept in context, providing a fluid experience as they navigate from one task to another.
  • They are asynchronous. Modern web applications use Ajax to dynamically load data, page fragments, or other assets instead of performing a full-page reload to acquire data or HTML content. Because the loading of data is asynchronous, the UI is able to stay responsive and keep the user informed while the data request is being fulfilled. This asynchronous on-demand loading also reduces application response time because requests can be tuned to return only the data and other content that needs to change.
  • They manage data. When applicable, modern web applications provide client-side data caching and prefetching to boost client-side performance. This enables the UI to immediately respond to user input gestures because it does not have to make a call to the server for data. Data caching also serves to minimize the impact on server resources, increasing application scalability because fewer calls to the server are required.

Wednesday, February 24, 2010

Difference in Websites and Web Applications


ShareThis
Tim McLaughlin (computerworld.com) has written a good description on what is difference in Websites and Web Applications. Here is a snippet of the article. Found full article here.

There's an often misunderstood distinction in the IT world between Web sites and Web applications:
  • A Web site is typically designed for casual or infrequent usage by individuals who often do not know, or do not even want to know, too much about the deeper mission of your organization.
  • A Web application, such as an HR Intranet or portal that a company provides to its employees, is a very different system that must be optimized for a different use case.

web site vs web application

It's important to make a clear distinction between Web sites and Web applications for three reasons:

  1. To define what the site or system is optimized to do
  2. To identify how the user is going to approach the features that are being made available
  3. To pinpoint which specific use cases your designers and developers must create and test

For Web sites, consider that most users are coming through a search engine or by browsing the Web. If they are not able to quickly and easily find what they're looking for, they usually take off. The most common example would be a marketing focused, "brochure" Web site. Casual site visitors like to ease into getting to know your company and will rarely take the time to learn all of your products in their first interaction with your site.

Designing an interface that is easy to browse and navigate should be a high priority. Marketing Web sites that are difficult to navigate, or those that have poor search interfaces, experience high abandon rates, poor pull-through and fail to meet marketing goals.

Web applications are different in that their users are likely coming with a very specific goal in mind. Taking the HR portal example a bit further, consider that some of your HR staff believes that employees like to browse the HR resources available to them. Based on that assumption, they design a content-rich Web site that offers company information, articles of interests, special employee discounts, etc. In fact, the more likely scenario is that employees only tap the HR Intranet when they have to fill out a vacation request, or to update their benefits information, etc. Because these activities are performed less frequently, it's important that they be optimized for usability.