(2) Getting started -- (5) download jquery (DownloadingjQuery)

Source: Internet
Author: User
Noinstallationisrequired. tousejQuery, wejustneedapubliclyavailablecopyofthefile, whetherthatcopyisonanexternalsiteorourown. asw.criptis... sy No installation is required. to use jQuery, we just need a publicly available copy of the file, whether that copy is on an external site or our own. as JavaScript is an interpreted language, there is no compilation or build phase to worry about. whenever we ne Ed a page to have jQuery available, we will simply refer to the file's location from a script element in the HTML document. No installation is required. To use jquery, We need to copy this file publicly available, whether on an external website or on our own website. Just as js is an interpreted language, you don't have to worry about the compilation and generation phases. No matter when we need jquery to be available on a webpage, we just need to simply add the file address to the script element in the html document. The official jQuery website ( http://jquery.com /) Always has the most up-to-date, stable version of the library, which can be downloaded right from the home page of the site. several versions of jQuery may be available at any given moment; the most appropriate for us as site developers will be the latest uncompressed version of the library. this can be replaced with a compressed version in production environments. official site ( http://jquery.com ) Always has the latest and stable jquery version. You can download it directly from the homepage of the website. Several jquery versions are valid at any time. For those of us who are website developers, the most suitable version is the latest uncompressed version. The compressed version can be used in the production environment. As jQuery's popularity has grown, companies have made the file freely available through their Content Delivery Networks (CDNs). Most notably, Google ( http://code.google.com/apis/ajaxlibs/documentation/ ), And Microsoft ( http://www.asp.net/ajax/cdn ) Offer the file on powerful, low-latency servers distributed around the world for fast download regardless of the user's location. while a CDNhosted copy of jQuery has speed advantages due to server distribution and caching, using a local copy can be convenient during development. throughout this book we'll use a copy of the file stored on our own system, which will allow us to run our code whethe R we're re connected to the Internet or not. As jquery grows, some companies make these files available for free through their content delivery network (CDNs. The most notable is Google ( http://code.google.com/apis/ajaxlibs/documentation/ ) And Microsoft ( http://www.asp.net/ajax/cdn These files are provided by server vendors around the world in a powerful and Low-latency manner for fast download without worrying about users' locations. Although jquery on the CDN host has a speed advantage due to the role of distributed servers and caches, It is very convenient to use local files during development. Throughout the entire book, I will use local files stored in our own system, which will allow us to run our Code regardless of whether we are online or not.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.