: Speeding up website"speed"? We use Google Analytics to measure traffic on one of our websites (who doesn't?). One of the thing that strikes us is the "page speed" tab. It shows that our website
We use Google Analytics to measure traffic on one of our websites (who doesn't?).
One of the thing that strikes us is the "page speed" tab. It shows that our website takes on average 5.69 seconds to load over the last 30 days. This is clearly way too slow, and we want to make that much faster.
We are a PHP and Apache site, but we use Google's Site Optimizer module for Apache.
The content itself. With ab, I find that it takes on average 150ms to serve each and every document, also, a single document is loaded with 5 calls (1 CSS, 1 JS and 2 images). However, these assets should obviously be cached after the first request.
When I look at the "Network" tab in Google Chrome, I find that my site is slow mostly due to adsense, analytics, Google+, doubleclick... or even Facebook (we show a widget).
These should obviously not be counted in the "load time" for our page, because these are not part of the content.
The site is Jobetudiant and you can access a version of it with no extra JS calls by adding noext&nopub to any URL.
What would you do to optimize the load and rendering times?
More posts by @Dunderdale272
3 Comments
Sorted by latest first Latest Oldest Best
Here is what I do to improve my pageload times:
I use cloudflare. They have got a tool called Rocket Loader for simultaneous loading of javascript that reduces pageload times.
Since my site is in Drupal, I have got a built in tool to aggregate and compress CSS and javascript which also helps me.
Try gzip for faster html loading.
If you have got a dynamic website on php, try these;
install and configure memcache/memcached/varnish. These really helps to reduce server load and improve pagespeed.
As a result of all these, my site now has a score of 97/100 in pagespeed insights.
(This answer assumes that you already have your page built with standard practices such as adding expires to headers, rounding the images with size, etc even though these does not help in your case).
If the performance bottleneck is GA, AdSense, etc. then you need to look into non-blocking JavaScript. Since these are non-essential libraries, they can also be loaded asynchronously after the page has loaded.
You might also consider reducing the amount of widgets and ads you include on each page. There's probably no need to serve up content from more than a single ad network at a time, and having 6 ad units above the fold is a bit excessive.
Besides that, there's not a whole lot you can do. If you want to stuff your pages with a massive widget that shows 20 fan thumbnails and large skyscraper and leaderboard ads, etc. then there's gonna be some performance overhead for that.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.