Trusted answers to developer questions

What is AJAX?

Get Started With Machine Learning

Learn the fundamentals of Machine Learning with this free course. Future-proof your career by adding ML skills to your toolkit — or prepare to land a job in AI or Data Science.

AJAXAsynchronous JavaScript And XML is a set of web development techniques that use many web technologies on the client-side to create asynchronous web applications. With Ajax, web applications can asynchronously send and retrieve data from a server without interfering with the existing page’s display and behavior. It is not a programming language and it requires a built-in browser with a XMLHttpRequest object that requests data from the server. It also uses JavaScript and HTML DOM to display data.

Google APIs

Google APIs contain many google hosted libraries. This is a widely available global content distribution network for the most commonly used JavaScript libraries.

Google 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>

Click here to visit the official site

Dojo

src="https://ajax.googleapis.com/ajax/libs/dojo/1.13.0/dojo/dojo.js"></script>

Click here to visit the official site

jQuery

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

Click here to visit the official site

RELATED TAGS

ajax

CONTRIBUTOR

Sarvech Qadir
Copyright ©2024 Educative, Inc. All rights reserved
Did you find this helpful?