Improving the performance of your charts

Although performance is great, (compared to server based libraries), you may still want to tune RGraph more.

The biggest thing you can do is use HTTP compression, which reduces the initial download time of the libraries, but there are quite a few things that you can do:

A reasonable performance strategy

Though there's a lot you can do to increase performance, a few of the points here will be enough for most websites:

The number one thing you should do is compress your libraries. This has many benefits and easily provides the most gain, effectively for free.

Secondly, use the minified libraries. Because you can download the minified libraries here , you might as well use them.

Then we have pre-emptive caching. Because most websites won't show charts on the front page or will have a login page before any charts are shown, this effectively eliminates the library files download.

And lastly caching should be done as a matter of course. There's no reason to keep downloading the same library so even caching for only 30 minutes (or the duration of an average visit to your website) will produce results.

General website performance tools

If your aim is to improve your websites performance as a whole then you may be interested in these tools:

Note about performance and HTTP/2

From 2016 HTTP/2 will become more widespread - with many people planning to make the switch to it and this includes many hosting providers.

Patterns such as domain sharding (using multiple hostnames) and combining your JavaScript libraries together become anti-patterns and are less useful (and in some cases actually hurt performance).

If you're planning to switch to HTTP/2, or already have, then you should compare the advantages of some of these techiques versus not using them and decide what, if any, the benefit is.

Again, in some cases the use of some of these techniques may not help at all and may even hurt performance.