Mobile app version of vmapp.org
Login or Join
Dunderdale272

: 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

@Dunderdale272

Posted in: #Html #PageSpeed

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?

10.05% popularity Vote Up Vote Down


Login to follow query

More posts by @Dunderdale272

3 Comments

Sorted by latest first Latest Oldest Best

 

@Speyer207

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).

10% popularity Vote Up Vote Down


 

@Ogunnowo487

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.

10% popularity Vote Up Vote Down


 

@Sarah324

Install Firebug for Firefox and then install the Google PageSpeed addon (and Yslow if you want another perspective). These will tell you specific details on how to optimize your pages to make them faster.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme