Javascript: http source vs server

I use JS here and there mainly for slide shows, form validation, sitenav dropdown (next step), but I have some noobie questions if anyone has time ...

Until now, I could use the jquery library on my server, but recently I started using a calendar for clients to select a date of birth. This requires a calendar.

<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>

My instinct tells me that I should have these .js and .css files on my server, is it inconvenient to use HTTP sources? I am currently saving links because I need to link to these libraries from different directories of my site.

Are these jquery plugins or is it ajax? since they are not in the main jquery library. I thought Ajax was an alternative to MS for jQuery, but now I'm confused ... Are there any common people in the big library who like to use, or is it just for adding small ones here and there?

Any help is greatly appreciated.

+3
source share
3 answers

Actually using the Google repository as it has some advantages over storing these files on your own server. Firstly, it can speed up the client because some people will not have to download js files, as their browser will cache these files the previous time they use them.

jQuery - JavaScript-, AJAX. AJAX - . jQuery.

jquery jquery snipet, . . , , .

+3

, , . CDN ( ) . , - , CDN .

. Javascript - . jQuery - , Javascript Ajax - , Javascript, . , .

jQuery Google CDN

jquery cdn

Microsoft CDN jQuery Google CDN?

+3

re: AJAX vs jQuery. AJAX JavaScript XML ( XML JSON). , JavaScript . XMLHttpRequest JavaScript-, . AJAX / Microsoft. . http://en.wikipedia.org/wiki/Ajax_%28programming%29

jQuery - . JavaScript, DOM, CSS, AJAX . AJAX.

+1

All Articles