Information sharing (my favorite web, food, tourism, etc ... and a bit of everything) and new technologies
The speed of loading a website depends on many factors:
- Flow internet user
- Capacity bandwidth provided by the host
- Weight and number of objects in the pages
- Site Design
- Etc ...
As everyone does not have a dedicated hosting comfortable (in my case with FREE accommodation in when I win the lottery I'll think), optimizing a website is necessary (heh heh attention, even if you have a super server, it does not mean that we can implement like a pig!) to make navigation more user-friendly and attract (or at least keep) visitors on its site because of boredom before a Waiting too long can quickly become detrimental.
This article will give some ideas to analyze and improve your site by optimizing its load:
Before putting your hands dirty, start by analyzing the critical points:
Firebug : Firebug is a plugin for the browser Firefox to analyze the weight and load time of the objects that make up your website, it provides a set of reports on your site. An example:
YSlow : This plugin requires Firebug and advise you by showing you how to optimize your site, you now choose your areas of optimization.
http://tools.pingdom.com : The same kind of tool Firebug , but for online use. Just to get an overview so ...
Finally, you can also install tools that can simulate a flow smaller than yours so you realize the reality of some users (not everyone live in Paris or Lyon, and I do not think that Those on plain (I'll let you look where that is) we have the same speed internet).
Smarty : Smarty is a tool to clean and optimize CSS file, you can test the online version of the tool , I tested a style.css file of 11KB, which now weighs 7KB, this is something gained ...
Other tools to optimize CSS: CleanCSS , cssoptimiser
JSMin : The same as for CSS but Javascript files, the code is reduced, the bandwidth is happy!
- Enable compression of HTTP responses, for my Wordpress installation I installed the plugin for Wordpress gzippy
- Use common sense: widgets, inclusions of YouTube videos, commercials, etc ... it's nice but you are dependent on a functioning of a third service. Use sparingly so! (I will think about removing or not my MyPageBlog widget in the sidebar)
- When using images, choose the right format (do you need a format that supports millions of colors if only four are present in the image), the right size (note for example when you resize a large image to display in miniature).
- Consolidate CSS into one to avoid multiple loads
- Consolidate JS files (when possible) and include them in the end page, the page will load first and JavaScript thereafter (again, when possible)
- Audit queries to the database that display data such as titles, authors, etc ... values that can sometimes be hard-coded (I mean ... sometimes hard coding is not a good practice in general)
You may have noticed, website optimization is a long process, I will also surely on this ticket to add or edit the contents of this post according to the results of my research and my work on this site.
If you also have some ideas, tools, links, let me know and I welcome your comments on topic.
You can find these items in some recipes optimization, I used some on my site.
5 Ways to Speed Up Your Site
Optimize the weight of its website (separate CSS and PHP include)
Wordpress: Optimizing the loading time of his blog
Tickets on the same subject:
2 Responses to How to optimize the loading of a website?
1 - Ahmed
June 3rd, 2008 at 11 h 05 min
The loading time of a site is really very important, especially that there are still quite a few people who do not have high speed Internet
Thank you for the link
2 - Eric Reboisson
June 3rd, 2008 at 11 h 21 min
But nothing, I found your article interesting so I speak.
Good luck to you.