Home >Web Front-end >JS Tutorial >Use Google's Javascript API Loader to speed up your website_javascript tips

Use Google's Javascript API Loader to speed up your website_javascript tips

WBOY
WBOYOriginal
2016-05-16 18:56:411120browse

If your website uses some mainstream Ajax libraries such as JQuery or Prototype, you can directly use the Google Javascript API loader to load your ajax library.
The specific method is as follows:



Because google uses CDN (content distribution network) to send data to the client, the speed is definitely faster than your server, and the client The client browser caches content based on links, so the more websites that use the Google Javascript API loader, the greater the chance of a client cache hit.
Now Google’s AJAX Library API supports most mainstream AJAX frameworks:
jQuery
jQuery UI
Prototype
script.aculo.us
MooTools
Dojo
SWFObjectNew!
Yahoo! User Interface Library (YUI)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn