Accélérer optimiser son site

Google a annoncé récemment qu’il tiendrait compte dans son page rank de la vitesse d’affichage des sites.  Cette déclaration a ému la communauté. En effet, les hébergements gratuits et sous-dimensionnés risquent de pâtir de cette règle.

En attendant de voir si Google mettra ce projet à exécution, voici quelques outils que Google met à disposition des webmasters pour optimiser la vitesse d’affichage de leur site.

Page Site est un add-on Firebug/FireFox

Une fois installé, on ira sur FireFox sur Outils>FireBug>Ouvrir FireBug puis sur l’onglet Page Speed on lancera l’application :

Page Speed indiquera les bonne règles à suivre :

  • Mettre les CSS avant les javascripts dans le head
  • de préférence mettre tous les css dans un seul fichier <link> mieux que @import
  • mettre les autres javascripts en bas de page
  • Donner des tailles aux images width et height
  • balise meta cache expiration (le navigateur gardera en cache la page)
  • compresser les CSS et javascripts par exemple minify YUI Compressor
  • réduire la taille des images
  • préférer les png aux gif
  • utilisation d’un cache pour les pages dynamiques (exemple total cache pour WordPress)
  • utiliser Google CDN

Le dernier point utiliser Google CDN peut paraitre obscur. La plupart des sites, abritent leur bibliothèque JavaScript sur leur propre serveur. Alors pourquoi utiliser des javascripts hébergés sur un serveur Google? Voici un certain nombre d’avantages:

1. Google Content Distribution Network possède des bibliothèques sur leurs différents serveurs à travers le monde et si vous utilisez leurs liens, lorsqu’ un internaute se connecte sur votre page, son navigateur télécharge automatiquement le fichier depuis le serveur le plus proche disponible, ce qui sera un téléchargement beaucoup plus rapide que si vous forcer un utilisateur à télécharger le fichier sur votre serveur hôte.
2. La distribution de contenu de Google réseau vous permettra d’économiser beaucoup de bande passante si vous avez un très gros trafic sur votre site et une bande passante limitée avec votre hébergeur.
3. Il y a de fortes chances que le système Google version hébergée de cette bibliothèque soit déjà mis en cache sur le cache du navigateur de l’utilisateur, car beaucoup de gros sites utilisent ce système.

Comment utiliser Google CDN?

Google CDN fournit la plupart des scripts, des bibliothèques JavaScript open source. On peut faire appel à ses codes de deux façons soit par la voie directe avec les
tags et via les bibliothèques Google AJAX API.

Utilisation Google API :

<script src="http://www.google.com/jsapi"></script>

et :

google.load("jquery", "1.3.2");
google.load("jqueryui", "1.7.1");
        // use this instead of:
            $(document).ready(function(){  });

On trouvera ici la liste des librairies fournies par Google.

  1. curry 6 shoes

    I wish to show my gratitude for your kind-heartedness for persons who need help with this important area of interest. Your special dedication to passing the solution across ended up being astonishingly beneficial and have surely allowed many people much like me to realize their desired goals. Your own valuable advice entails a great deal a person like me and additionally to my office workers. With thanks; from everyone of us.

  2. golden goose

    I and my friends were found to be examining the excellent information on the website and then at once got a horrible feeling I never expressed respect to the blog owner for them. These men ended up as a result joyful to read through all of them and already have honestly been tapping into these things. Thank you for really being very considerate and for picking varieties of impressive topics most people are really eager to be aware of. Our own honest regret for not saying thanks to sooner.

  3. bape

    I needed to put you the bit of word to finally say thank you again for those fantastic solutions you have provided at this time. This is pretty generous with people like you to offer unhampered just what a lot of folks might have distributed for an e-book to get some bucks for themselves, primarily since you might have tried it in case you wanted. The solutions as well acted to be the easy way to fully grasp other people online have the identical passion similar to my own to grasp good deal more with regard to this matter. I believe there are numerous more fun occasions in the future for those who scan your blog.

  4. kawhi leonard shoes

    I wish to convey my affection for your kindness for persons that really need help on this particular topic. Your real commitment to passing the solution throughout came to be certainly productive and has empowered workers much like me to realize their dreams. Your new warm and helpful guide denotes a great deal a person like me and somewhat more to my office workers. Warm regards; from all of us.

  5. supreme clothing

    Needed to draft you this very little word just to thank you so much over again for these nice techniques you have provided on this page. It was simply shockingly open-handed of people like you to make easily what a lot of people could possibly have made available for an e-book to get some money on their own, principally now that you could have tried it if you desired. These tactics in addition acted to become great way to realize that other people online have a similar fervor the same as my very own to understand lots more regarding this problem. I think there are several more enjoyable periods up front for folks who looked over your blog.

  6. goyard outlet

    I definitely wanted to make a simple comment so as to say thanks to you for these fabulous tactics you are sharing on this site. My time-consuming internet investigation has at the end been recognized with good quality facts to talk about with my great friends. I ‘d state that that most of us readers actually are quite fortunate to be in a fine network with very many wonderful professionals with very beneficial opinions. I feel rather blessed to have discovered the webpage and look forward to tons of more excellent minutes reading here. Thank you again for everything.

  7. yeezy

    A lot of thanks for every one of your efforts on this site. My mum enjoys going through investigations and it’s easy to understand why. Many of us notice all regarding the dynamic means you give precious tips and hints on your website and invigorate contribution from visitors on that concern while our favorite daughter is always studying so much. Take advantage of the remaining portion of the new year. You are carrying out a great job.

  8. curry shoes

    I simply had to appreciate you yet again. I’m not certain what I would have accomplished in the absence of the entire opinions shown by you over that concern. Certainly was a depressing scenario in my circumstances, but spending time with the very specialised form you dealt with it forced me to leap over joy. I am just thankful for this help and even trust you realize what an amazing job you were doing instructing the others using a site. Most probably you haven’t met all of us.

  9. bape clothing

    I have to show my respect for your generosity giving support to persons who must have help on this important concern. Your personal dedication to passing the message all over was particularly effective and have really empowered associates like me to realize their desired goals. Your warm and friendly help indicates so much to me and even more to my fellow workers. Regards; from everyone of us.

  10. supreme

    I have to voice my appreciation for your kind-heartedness supporting men who absolutely need help on this particular theme. Your special commitment to getting the solution all through turned out to be wonderfully advantageous and has all the time helped most people much like me to arrive at their pursuits. Your personal helpful useful information implies a lot to me and extremely more to my mates. Thanks a lot; from each one of us.

  11. lebron 16

    I wanted to send you a very little observation so as to say thanks a lot the moment again on your nice secrets you have provided in this case. It has been really extremely open-handed with you to grant unhampered what exactly many people would’ve made available for an e-book to earn some cash for themselves, chiefly since you could have done it if you ever considered necessary. Those suggestions as well acted to become easy way to know that other individuals have a similar desire really like my own to figure out a lot more with reference to this issue. I am sure there are lots of more fun occasions ahead for many who looked over your site.

  12. kyrie 7

    My spouse and i were very comfortable when Albert managed to finish up his investigation from your ideas he grabbed when using the blog. It’s not at all simplistic to just find yourself freely giving secrets people have been trying to sell. And we also do know we have got the writer to give thanks to for that. All the explanations you’ve made, the straightforward site navigation, the relationships you help foster – it is mostly great, and it’s helping our son and the family reason why this topic is excellent, which is certainly quite important. Many thanks for the whole lot!

  13. chrome hearts online

    I would like to convey my appreciation for your kindness giving support to those people that really need assistance with your issue. Your special dedication to getting the solution throughout has been definitely invaluable and have continually helped associates like me to arrive at their targets. This insightful guideline implies a lot a person like me and much more to my office colleagues. Thank you; from each one of us.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée.