I know that Google Load allows you to load libraries/frameworks from Google's CDN using the google.code fuction, such as:
However, what gives the above code an advantage over direct linking from Google's CDN? Such as:
If I use the second example. I don't have to import the original google script that allows me to use google.load(), thus saving an extra JS file.
What're the advantages of using google.load() rather than <script>, if any?
Code:
google.load("jquery", "1.4.4");
However, what gives the above code an advantage over direct linking from Google's CDN? Such as:
Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
If I use the second example. I don't have to import the original google script that allows me to use google.load(), thus saving an extra JS file.
What're the advantages of using google.load() rather than <script>, if any?