jQuery framework reference
-
<script type="text/javascript" language="Javascript"
src="http://ajax.microsoft.com/ajax/jQuery/jquery-1.3.2.min.js"></script><script type='text/javascript'>
//<![CDATA[
if (typeof jQuery == 'undefined') {
document.write(unescape("%3Cscript
src='/script/JS/jquery-1.3.2.min.js' type='text/javascript' %3E%3C/script%3E"));
}//]]></script>I found above code in CP home page, just want to know is there any benefit referring the jQuery framework from microsoft website at the first place?
Regards, Prakash Kalakoti
-
<script type="text/javascript" language="Javascript"
src="http://ajax.microsoft.com/ajax/jQuery/jquery-1.3.2.min.js"></script><script type='text/javascript'>
//<![CDATA[
if (typeof jQuery == 'undefined') {
document.write(unescape("%3Cscript
src='/script/JS/jquery-1.3.2.min.js' type='text/javascript' %3E%3C/script%3E"));
}//]]></script>I found above code in CP home page, just want to know is there any benefit referring the jQuery framework from microsoft website at the first place?
Regards, Prakash Kalakoti
JQuery has nothing to do with Microsoft, asp.net. 'jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript." http://jquery.com/[^] I would suggest doing a little research
I know the language. I've read a book. - _Madmatt
-
JQuery has nothing to do with Microsoft, asp.net. 'jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript." http://jquery.com/[^] I would suggest doing a little research
I know the language. I've read a book. - _Madmatt
Mark, sorry if the question was not clear. I know jQuery and using it from last 2 years, actually I want to ask why the jQuery file is referenced from Microsoft website instead of a local js reference. In the code it is checked that if the file in not available at MS site then load it from a local path. Do we get any benefit doing this?
Regards, Prakash Kalakoti
-
Mark, sorry if the question was not clear. I know jQuery and using it from last 2 years, actually I want to ask why the jQuery file is referenced from Microsoft website instead of a local js reference. In the code it is checked that if the file in not available at MS site then load it from a local path. Do we get any benefit doing this?
Regards, Prakash Kalakoti
Two reasons could be Consistency, the same version can be referenced. Cache, the js file could be cached by ajax.com.
I know the language. I've read a book. - _Madmatt
-
Two reasons could be Consistency, the same version can be referenced. Cache, the js file could be cached by ajax.com.
I know the language. I've read a book. - _Madmatt
-
I forgot about this. http://www.asp.net/ajaxlibrary/cdn.ashx[^] "By taking advantage of the Microsoft Ajax CDN, you can significantly improve the performance of your Ajax applications. The contents of the Microsoft Ajax CDN are cached on servers located around the world. In addition, the Microsoft Ajax CDN enables browsers to reuse cached JavaScript files for Web sites that are located in different domains."
I know the language. I've read a book. - _Madmatt