Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8435385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:54:02+00:00 2026-06-10T06:54:02+00:00

Im wondering why people attached jQuery current version on to their website like below

  • 0

Im wondering why people attached jQuery current version on to their website like below

//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js

rather than attaching the version that gets updated by it self like below

http://code.jquery.com/jquery-latest.js

Please let me know your thoughts on this. thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:54:04+00:00Added an answer on June 10, 2026 at 6:54 am

    The first link to Google’s API is for the minified version, being only 136 bytes compared to the second links 173 bytes.

    Using a CDN, the main benefit is caching. If a user has already visited a site that uses the same CDN and the same script, they will have the script already cached in the browser, but that requires that the resource is cacheable, and the “latest” version has no expires date in the header, while the link that specify the version number expires Fri, 23 Aug 2013, so in other words one of the main advantages of using a CDN for jQuery is lost when using the second link and the file is also larger. On top of that, if something changes between versions, functions that are using certain jQuery methods that are changed during a version update could break as the CDN automatically delivers the latest version.

    Using the first link seems like a good idea, but in my opinion using the second link is not, and you probably would be better of just hosting the file yourself with caching enabled.

    Then there’s the other reasons for using a CDN:

    It increases parallelism as some browsers will only download 3 or 4 files at a time from any given site.

    It reduces the amount of bandwidth used by your server as you basically get free bandwidth from the CDN.

    It increases the chance that the script will already be cahced, and as more sites use the large CDN networks, more users will already have the file ready in the browser without having to download it, which speeds up your site.

    It ensures that the payload will be as small as possible as Google/MS/jQuery can pre-compress the file in a wide array of formats (like GZIP or DEFLATE). This makes the time-to-download very small, because it is super compressed and it isn’t compressed on the fly, like many common webservers do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering how people are currently resetting their data / cleaning up test remnants
I was wondering if people would share their best practices / strategies on handling
I was discussing this at work, and was wondering where people start their designs?
I was wondering what people is doing in order to compile their iPhone applications
I was wondering what people put into their toString() methods in Java. I have
I was wondering how people think about using productivity tools like Coderush or Resharper
I was wondering if people could post their solution to the ongoing problem of
I'm wondering if people have a standard format for comments in their code. Not
I was wondering what people thought of doing something like var x = obj.child.prop1;
I was wondering if people could share their preferred approach for filtering the contents

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.