Posts Tagged ‘Web’

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

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…