A content delivery network (CDN) is a large distributed system of servers deployed in multiple data centers across the Internet. The goal of a CDN is to serve content to your visitors with high availability and good performance. CDNs serve a large fraction of the Internet content and are behind all of the popular sites you use on a daily basis. When you have overseas visitors, information has to travel great distances and is therefore limited by the physical limitations like the speed of light. By having your content copied to a server that is close to your visitor, this bottleneck is eliminated. These networks mirror static resources such as images on your website and make them load much faster, no matter where your visitors are located.
CloudFlare is an easy way to supercharge your website. With the free plan you'll not only benefit from a great infrastructure but also enjoy protection from various online threats. This very site is proudly using CloudFlare since 2012.
How to get started with CloudFlare?
There are no settings for this in Justified Image Grid, as everything works automatically. Just go to the CloudFlare website and Sign up, follow their directions. There is also a CloudFlare WordPress plugin which you should install to get proper analytics.
Benefits of using CloudFlare
Improves load performance.
Free CDN for your static resources.
With numerous servers all over the world, they are closer to your visitors than your origin server.
Works with all thumbnails displayed with Justified Image Grid, including special effects!
Works for all other local images, CSS and JS files (static resources) on your site.
It absorbs bandwidth and takes off a great amount of load from your hosting.
Makes your site secure as attackers are filtered through their service.
Does not change any URLs on your site, assets look like they are loaded from the original host.
Scalability: when you need more, they have various pro plans.
Your domain's DNS records need to be managed by CloudFlare.
Doesn't offer a thumbnail creation service like Jetpack Photon.
Please note that JIG is not compatible with the Email Address Obfuscation of the CloudFlare Srcape Shield.
In most cases it's not recommended nor possible to use CloudFlare Rocket Loader™ with JIG.
Created by the company behind WordPress, this free plugin brings some WP.com benefits to self-hosted WordPress sites. The Photon service is a CDN with image resizing, which creates thumbnails for your Justified Image Grids.
Jetpack Photon alters the way images load on your site. Justified Image Grid detects it automatically, no configuration is necessary.
Connect your site to WordPress.com (it’ll ask you to log in).
Enable Photon from their service list.
Benefits of using Jetpack with Photon
A free CDN only for your images.
It replaces built-in thumbnail creation (good if you have server issues).
Great when the source for your JIG gallery is the WP media library or NextGEN gallery.
Absorbs bandwidth for images, thus it reduces load on your hosting.
Many other modules that you might find useful (optional).
It requires Jetpack plugin installed and the site being connected to WordPress.com.
Justified Image Grid's special effects - made using Pixastic - are unavailable (cross-domain security policy).
Images get served from another domain.
The Amazon CloudFront and MaxCDN are the most popular choices among Justified Image Grid customers. These are paid solutions, butthe good news is that they are inexpensive and the pricing is bandwidth-based.
Sooner or later every successful website is going to need a CDN of some sort. These are excellent choices and for high-traffic sites. The benefits and considerations are different for each company, so your mileage may vary. They either work on a sub-domain of your host (cdn.example.com) or on an entirely different host (something.cloudfront.net). Justified Image Grid allows you to rewrite the host name to the CDN host in image URLs. It's very similar to how W3 Total Cache works with CDNs. Note that certain CDNs may not compatible.