You must Sign In to post a response.
  • Category: JQuery

    How to use jquery in project?

    I am new to jquery.I want to ask u ,if I want to use jquery in my web application,do I need to download library from https://jquery.com/download/ Which one uncompressed/Compressesed, development jQuery 1.12.2?What is CDN?How safe to use jquery from CDN like this?

    <script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
    Is it default CDN : http://code.jquery.com?
  • #765255
    Hi

    Go to Jquery Home Page Download Current Jquery version then you can refer. I mention below home url

    http://jquery.com/download/


    Reference in your aspx page like this


    <head>
    <script src="jquery-1.12.0.min.js"></script>
    </head>

    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #765256

    Hi

    then if you need refer from

    Google CDN Means follow this


    <head>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
    </head>



    Microsoft CDN means

    try this code


    <head>
    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script>
    </head>


    if your local path means try this code



    <head>
    <script src="jquery-1.12.0.min.js"></script>
    </head>



    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #765268
    Hi,

    As per your question the answer is Yes, you should include the library files while include JQuery in your application, because those library files are referenced files to perform the specific task which you perform, we know that using Jquery we perform task with minimal lines of code but internally those referenced files perform the related task. So, that library files are act as a referenced same like namespace in server side.

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #765741
    Hi
    CDN means content delivery network , which delivers the user script file or supporting file from geo location .

    If you include the library then only you can access the facility inside the library pack , you can give cdn path direct if u have internet every time . If you want to use offline version then direct cdn will not work thet time you need local file .

    Local file is faster than compare to direct pointing online

  • #765744
    You can use any Jquery. Don't worry whether is it Min version

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>

    The min version will be useful for the good performance because of the size.

    By Nathan
    Direction is important than speed


  • Sign In to post your comments