Archive for the ‘Web’ Category

Some Worst User Experiences

Tuesday, September 2nd, 2008

Some Worst User Experiences

1) After filling up a huge forum and clicking submit all fields get reset and you see some message like password needs to be atleast 8 characters.

2) Somehow after the frustration, you successfully register and check you email to find that you still did not receive the confirmation email.

3) Even after a couple of hours you dont receive the email.

4) Losing the context i.e after registering / logging in you get redirected to the default page instead the original page you intended to go.

5) Not mentioning the rules in web forms like minimum characters / special characters required / disallowed characters etc…

We developers want to make User Experience better not worse. And also remember that User Experience can play a major role in the success of your website.

Some Worst User Experiences

Links For August 22nd 2008

Saturday, August 23rd, 2008

Links For August 22nd 2008

ASP.Net:
Caching Interview Questions Part 1
Dependency injection made easy for the ASP.NET MVC
ASP.NET AJAX Development Approach Part 2

Web:
HTML 5: The event loop, hashchange, and more
Create HotKey combinations with jQuery
Debugging Ajax Using FireBug
Speed Up Your Website By PreLoading - Example Included

Podcasts:
ASP.NET Podcast Show #124 - Speed up big Apps with Velocity!
4 Elements of Professional WPF Applications
ASP.NET Podcast Show #118 - Paul on Peer-To-Peer with Windows Communication Foundation

WCF:
How to Build REST apps on .NET using WCF

Silverlight:
A Personal Guide to Getting Started with Silverlight

Links For August 22nd 2008

Speed Up Your Website By PreLoading - Example Included

Saturday, August 23rd, 2008

Speed Up Your Website By PreLoading - Example Included

This article is a continuation to an article titled: Speed Up Your Web Pages By PreLoading, Caching…

Lets first discuss about the example: Here we have 3 webpages titled:
index.html, preloaded.html, nonpreloaded.html. We have 4 bmp images of 3 MB size each - p1.bmp, p2.bmp, np1.bmp, np2.bmp.
When you open index.html, you find 2 links to the documents preloaded.html and nonpreloaded.html. However I suggest you to read all the instructions on index.html page thoroughly. Below is the link for index.html, after you follow the instructions on that page, come back here, lets discuss what happened in that page. And also try to time the loading of the pages, and post the time it took to load those pages, your connection speed in the comments.

Link for index.html

In the above example page, we have links for preloaded.html and nonpreloaded.html. preloaded.html has 2 images p1.bmp and p2.bmp which are 3 mb each. While you were reading the content on index.html those images were preloaded in background, so when you clicked on the link for preloaded.html it loaded quickly as the images were already loaded and cached by your browser. But when you clicked on nonpreloaded.html the images np1.bmp and np2.bmp were not preloaded so after you clicked the link, those images were downloaded causing a little delay in loading the page. Any doubts or comments are welcome. In case you had a too slow connection and could not make a difference in loading times, let me know, I can come with another example for you.

Update:
Here, I just simulated a scenario. Obviously I wont have bmp’s. I mean to say if there are several files like js, css, image files and you know for sure that a person would click the link, you can pre load it this way. Definitely no one would want to put a 3 Mb bmp file. I did that only to simulate big files or multiple small files which would consume few seconds.

Speed Up Your Website By PreLoading - Example Included

Links For August 21st 2008

Friday, August 22nd, 2008

Links For August 21st 2008

.Net:
C# Inline Methods and Optimization
Questions on application domains, application pools and unhandled exceptions
Did you know… How to debug your optimized code?
ASP.NET Generated Image Control
ASP.Net Load Testing and Optimization Toolkit - So you want to be a hero
ASP.Net MVC Videos
Rotor 2.0 referance book

LINQ:
Probably The Most Powerful LINQ Operator: SelectMany

Web:
jQuery Timers
jQuery: Animation for Dummies
A Horizontal Layout Navigation Web Page Using jQuery
15 Quick Ways to Shrink Page Load Times
Speed Up Your Web Pages By PreLoading, Caching…
B2B Communication and Securing them

Silverlight:
Silverlight CMS Demo
Silverlight Particle Generator
Silverlight custom fonts - How to and issues

Database:
Introducing Table-Valued Parameters - Part 1

Other:
25 Must-Have Thumb Drive Apps for Geeks

Podcasts:
Velocity Podcast

Links For August 21st 2008

Speed Up Your Web Pages By PreLoading, Caching…

Friday, August 22nd, 2008

Speed Up Your Web Pages By PreLoading, Caching…

In this article, I will explain several techniques which can be applied to any website irrespective of the development language.

1) If possible put all your static content like javascript, css and images on a seperate domain. This way you can speedup as the browsers can download content in parallel.
2) Minify your js and css.
3) Set ETags, and set expiration date to a furture date for all your static content as this would enable the browser to cache the resources.
4) Compress and serve the static content.
5) Cache your Ajax data.
6) Reduce number of round trips.

Now let us discuss a technique by which you can load the resources in the background.
You can have a javascript function which gets called afterthe page is loaded. And in this javascript function you can load other resources in the background.

Now let us discuss another technique called pre-loading. Though this may not be the scenario in every case. Lets assume we have a certain scenario in which you would redirect a user to a certain page which needs a lot of js, images, css. You can insert a hidden iframe with all these resources and dont forget to have this iframe at the end of the page, so that the page is displayed and meanwhile these resources are loaded.

In a future article lets see some code examples of these techniques - loading in background and pre loading.

And may be in a series of future articles let us discuss how to improve performance of ASP.Net applications.

Till then have fun.

Update:
Part - 2 has been posted at Speed Up Your Website By PreLoading - Example Included
Speed Up Your Web Pages By PreLoading, Caching…