Why you need a CDN for your WordPress Blog?

  • Speed – Once we started using a CDN on our site, the site got faster.
  • Crash Resistance – Thanks to you guys for sharing our articles, we have received huge spells of traffic from social media on some of our articles. If it wasn’t for the proper CDN and caching setup, then our site would crash so many times. CDN allows us to distribute the load to multiple servers instead of having 100% traffic to our main server thus making it less likely to crash.
  • Improved User Experience – Since we started using a CDN, we have noticed a decline in bounce rate on our site. Furthermore, we have also seen increased in pageviews and numbers of pages viewed by each user. So clearly a fast site means improved user experience.
  • Improvement in SEO – Google has clearly stated that faster sites tend to rank higher in Search Engines. We have noticed our site ranking higher once we did the optimization on our site.

What Is Amazon CloudFront?

Further suppose that the web server from which you’re serving the image is in Seattle, Washington, USA, and that a user in Austin, Texas, USA requests the image. The traceroute list below (courtesy of www.WatchMouse.com) shows one way that this request could be routed.

WatchMouse

 

U.S. map

In this example, the request was routed 10 times within the United States before the image was retrieved, which is not an unusually large number of hops. If your user were in Europe, the request would be routed through even more networks to reach your server in Seattle. The number of networks and the distance that the request and the image must travel have a significant impact on the performance, reliability, and availability of the image.

How to Use a CDN with WordPress

There are two main ways of working with a CDN. A Push Zone and a Pull Zone. A Push Zone is when you upload your files directly to your CDN provider (you push them) and it serves them. A Pull Zone is when your CDN mirrors your server, copying everything that’s on it and serving a copy (it pulls them in).

Deep dive into the murky waters of script loading

In this article I’m going to teach you how to load some JavaScript in the browser and execute it.

.. Ok ok. If you want to load scripts in a way that doesn’t block rendering, doesn’t involve repetition, and has excellent browser support, here’s what I propose:

<script src="//other-domain.com/1.js"></script>
<script src="2.js"></script>

That. At the end of the body element