I’m planning to use jquery frequently in my web pages. If my knowledge is correct , the file size of jquery is roughly 200K.Does the size imply that 200K bytes are downloaded for each my web page?
Thank you in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No; if each of your pages links to jQuery using the same URL, it’ll be downloaded just once, and the browser will reuse the cached copy.
Note that many web sites link directly to the published copy of jQuery at Google; saves everybody bandwidth, as the browser can then share one copy across multiple sites! The URL is, e.g., https://ajax.googleapis.com/ajax/libs/jquery/1.2.3/jquery.min.js .