1.

What do you mean by CDN (Content Delivery Network) in jQuery?

Answer»

CDN stands for CONTENT Delivery Network. CDNs are geographically distributed groups of servers that deliver Internet content quickly. To provide end-users with fast, secure media delivery and WEB content, the servers are dispersed across many physical and network locations. Using CDNs can significantly reduce load times since they deliver files at higher bandwidth from servers located closer to your visitors than your own web server.

For faster access and better performance, web PROGRAMMERS and developers can leverage CDNs to host their jQuery LIBRARIES. Microsoft and Google have already put jQuery on their CDNs, so developers don't have to worry about that. Their only task now is to reference the hosted jQuery library.

Google CDN

<head><script type="text/javascript" SRC="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script></head>

Microsoft CDN

<head> <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.6.0.min.js"></script></head>


Discussion

No Comment Found