Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. jQuery framework reference

jQuery framework reference

Scheduled Pinned Locked Moved ASP.NET
javascriptcomtoolsquestion
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PSK_
    wrote on last edited by
    #1

    <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

    N 1 Reply Last reply
    0
    • P PSK_

      <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

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      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

      P 1 Reply Last reply
      0
      • N Not Active

        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

        P Offline
        P Offline
        PSK_
        wrote on last edited by
        #3

        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

        N 1 Reply Last reply
        0
        • P PSK_

          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

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          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

          P 1 Reply Last reply
          0
          • N Not Active

            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

            P Offline
            P Offline
            PSK_
            wrote on last edited by
            #5

            Thanks, caching seems to be more appropriate reason to me.

            Regards, Prakash Kalakoti

            N 1 Reply Last reply
            0
            • P PSK_

              Thanks, caching seems to be more appropriate reason to me.

              Regards, Prakash Kalakoti

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups