Building a website that loads quickly is a critical step nowadays in order to create a successful website. To ensure your Episerver site has a blisteringly fast load speed, it’s a good idea to run a few speed tests against it. There are many tools available on the market to test the loading speed of your Episerver website. One of those (and it’s FREE) is Yahoo’s Yslow.
What is Yslow?
Yslow is a tool that analyses your Episerver web pages and then suggests ways to improve your pages’ responsiveness, based on it’s rules criteria, known as Yahoo’s rules for high performance websites. YSlow will give your page an a grade and a score of up to 100. Yslows performance report will also include:
- A summary of the pages components with a grade for each one
- An analysis of your page, with suggestions on how to fix the problems
For each issue you fix, your site will climb one point higher to the elusive 100. I used YSlow for Chrome,download link here, but there are also other flavours.
An example site
Running Yslow is extremely simple: in chrome click your YSLow button and the ‘Run Test’ button:
Make Sure You Use IIS and not Cassini
When you are doing your testing, make sure you are running the site via IIS and Casinni. Cassini is much slower than IIS, and it doesn’t support all features like Gzip compression, etc.
Setting Up Your Web.Config
Add Expires Headers
The first time someone visits your website, they need to download everything from the server. By default, each time someone visits your site, they will keep downloading everything on each request. One thing you can do to reduce those requests is to make the components cacheable by adding expire headers.
<!-- Image types -->
You can also add expire headers in Episerver like so:
</pre> <section></section> <pre>
Make fewer HTTP requests
Today I’ve introduced YSlow and how you can use it to find out how responsive your web site is. Performance and optimization is a very specialised process and there’s hardly ever a one shop fit for all websites. In this guide I’ve covered some of the basics that will help you improve your sites score.