Content Delivery Networks (CDN's)

Content Delivery Networks (CDN's)

Leverage CDN's with this advice.

We all know it will take longer for users in different countries to download files and load pages. Search engines rank faster loading websites higher so this is something you should optimise.

When delivering content, you are at the mercy of internet infrastructure, much of which is beyond your control, especially IP routing.

You can alleviate this problem to some extent by using a CDN to mirror your content on servers all over the world.

File assets will then be delivered by the shortest route. Free CDN's like Google deliver common files like Bootstrap and JQuery reliably in all territories - but can track you and your users from this.

Jquery CDN

pick your favourite - enter your version number

  1. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
  2. or https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js
  3. official JQuery CDN (may require sign up) <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>

Bootstrap CDN

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

Conclusion

build a CDN strategy to improve your page load times