Google APIs contain many google hosted libraries. This is a widely available global content distribution network for the most commonly used JavaScript libraries.
To load a hosted library, copy and paste the HTML snippet for that library (shown below) on your web page. For instance, to load jQuery
, embed the <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
snippet in your web page.
Load libraries from the CDN via HTTPs to make sure performance using caches is not compromised.
Let’s look at some examples:
D3.js
<script src="https://ajax.googleapis.com/ajax/libs/d3js/6.1.1/d3.min.js"></script>
Dojo
src="https://ajax.googleapis.com/ajax/libs/dojo/1.13.0/dojo/dojo.js"></script>
jQuery
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
Free Resources