jQuery Reading Assignment

  1. jQuery is the most commonly used library for building JavaScript websites and apps.
  2. jQuery comes in a single line of code, vs the same code that can take up to 20 lines.
  3. jQuery comes in two versions, there is the uncompressed file- which is larger in size, but its easy to read and understand the code. Then there is the minified version- that version is much smaller and is ideal for faster downloading, but its not easy to read code.
1 Like

Answers

  1. jQuery is a library that makes it more time efficient and more convenient to build JavaScript webpages and web apps.

  2. It helps in many ways as developers for example things like animation, Ajax request, DOM manipulation, image effects. It also lets us write cross-browser JavaScript code.

  3. The uncompressed version lets us easily read but bigger in size, and modify version is smaller in size but its the best version to place on a site.

1 Like

1. What is jQuery?

jQuery is the most popular free Javascript library.

2. How does it help us as developers?

jQuery is extremely helpful because it saves us a ton of time and helps us build better webpages and apps faster. It does this by preventing browser compatibility issues, and allows us to make better animated effects, create drag and drop interfaces, drop down menus and lots more.

3. Why do we have 2 version of jQuery - minified and uncompressed?

The minified version contains just the essentials, the actual code itself, and is therefore a much smaller file. The uncompressed version is much easier to read because it contains comments and other text.

The smaller file is faster to download, but the larger file is more detailed (and slower for users to load)

1 Like

What is jQuery?

  • jQuery is a library that makes it quicker and easier to build JavaScript webpages and web apps. (Often with jQuery you can write a single line of code to achieve what would have taken 10-20 lines of vanilla JavaScript).

  • jQuery is itself written in JavaScript, and comes in the form of a single .js file that you link to from your webpage. (Your JavaScript code then accesses the library by calling various jQuery functions).

How does it help us as developers?

  • jQuery makes it easy to write powerful JavaScript apps and create eye-catching animated effects rivaling those of Flash movies.

-Adding animated effects to elements:

—>fading in/out

—>sliding in/out

—>expanding/contracting

-Making XML (Ajax) requests:

—>These use JavaScript to request additional data from the Web server without having to reload the page.

-Manipulating the DOM:

—>You can easily add, remove, and reorder content in the Web page using just a couple of lines of code.

-Creating image slideshows:

—>You can use jQuery effects to build nice animated slideshows and lightboxes.

-Making drop-down menus:

—>jQuery makes it easy to create multi-level dropdown with animations.

-Creating drag-and-drop interfaces:

—>Use jQuery to build a page with elements that can be repositioned or reordered simply by dragging and dropping.

-Adding power to forms:

—>With jQuery you can easily add complex client-side form validation, create auto-complete Ajax text fields that pull data from a server-side database, and so on.

Why do we have 2 versions of jQuery - minified and uncompressed?

  • The jQuery library actually comes in 2 forms:

-The uncompressed .js file is easy to read and modify, but it’s around 160kb in size (at the time of writing).

-The minified .js file has all comments, whitespace, and other unnecessary characters removed from the file, squeezing the whole library into a mere 23kb. Although you can’t easily read the code, this is the version you’ll want to place on your site, as it’s much quicker for visitors to download.

1 Like

What is jQuery?

  • it’s by far the most popular JavaScript library in use today

How does it help us as developers?

  • with jQuery you can write a single line of code to achieve what would have taken 10-20 lines of regular JavaScript code
  • a lot of functionality is available with this library

Why do we have 2 version of jQuery - minified and uncompressed?

  • if implemented the smaller version minified, your site will be faster downloaded by visitors
  • the uncompressed version is easier to read for developers beacuse of the comments which are still in place
1 Like

Love the detailed answer sir. Keep up the great work !

Happy Learning :slight_smile:

1 Like
  1. JQuery is JavaScript code in the for of a file with the type being .js.

  2. A developer can reference the .js and instead of writing +20 lines of code can instead write just one.

  3. The uncompressed.js is easier for humans to read and use but is not fast. The minified.js is faster and should be used in production.

1 Like

1.What is jQuery?
A very popular JavaScript library.
2.How does it help us as developers?
jQuery is a library that makes it quicker and easier to build JavaScript webpages and web apps.
jQuery is itself written in JavaScript, and comes in the form of a single .js file that you link
to from your webpage. Your JavaScript code then accesses the library by calling various jQuery functions.
3.Why do we have 2 version of jQuery - minified and uncompressed?
The minified version is much smaller, therefore quicker for visitors to website to download.
The uncompressed version is documented and easier to read to help the developer understand how
it should be used.

1 Like
  • What is jQuery?

jQuery is a library which make it quicker, easier, and cleaner to build web pages and apps.

  • How does it help us as developers?

Up to twenty lines of regular JavaScript code can be written with a single line of code in jQuery.
Incompatibilities between popular browsers such as IE, Firefox and Safari is no longer problem, you just call the appropriate jQuery function and let it deal with it.

  • Why do we have 2 version of jQuery - minified and uncompressed?

Full version takes 160kb of space the minified only 23kb and this is the version you’ll want to place on your site, as it’s much quicker for visitors to download.

1 Like
  1. A free JavaScript library.
  2. It helps developing JavaScript apps using fewer lines of code, great for animations, Ajax requests, DOM manipulation, image effects, user interface elements and allows to write cross-browser JavaScript code.
  3. Uncompressed jQuery version is used for modifications of the code and functionality and 267KB in size, easily readable for humans with lots of whitespace and comments to help in understanding the code.
    Minified version has all the unnecessary characters removed from the source code without changing its functionality and 32KB in size - faster file downloading for users.
1 Like
  1. jQuery is a library that makes it quicker and easier to build Javascript webpages and web apps.
  2. Using jQuery, we can write powerful Javascript apps using fewer lines of code by re-using someone else’s made functionalities which available for public for free. So it saves time and allows developers to think improving more complex codes.
  3. The uncompressed version is easy to read and modify, whereas the minified version is shrinked so it is more difficult to read. However, a mean thing is that the first version is bigger in size and the second is a lot more smaller which makes it easier for the clients to download the webpage faster.
1 Like

1. What is jQuery?
jQuery is a library that makes it quicker and easier to build JavaScript webpages and web apps. You can usually use one line to write what would take multiple lines with javascript.
2. How does it help us as developers?
To save time
3. Why do we have 2 version of jQuery - minified and uncompressed?
To save space and make the page faster

1 Like
  1. What is jQuery?
    jQuery is a library of code
  2. How does it help us as developers?
    It allows developers to save time by using fewer lines of code
  3. Why do we have 2 version of jQuery - minified and uncompressed?
    The uncompressed version is easier to read but uses more space. The minified version isn’t as easy to read, but is quicker for your website visitors to download.
1 Like
  1. JQuery is a free JS library that makes it easier and faster to build JS web pages & apps.

  2. it makes it easier from developers to build poweful JS webpages and apps, creating eye catching effects like animation, AJAX request, DOM manipulation, image effects, user interface element, write easy cross-browser JS code.

  3. JQuery uncompressed version includes comments and documentation and spacing for developers to be able read and modify the code, while the minified version removes all that and keeps only the code requried for the computer to read making it a smaller file that is faster to download.

1 Like
  1. JQuery is a very popular and widely used library.
  2. JQuery gives developers access to a wide range of functions that they can use in order to save the time and resources it would take to write this code on their own. It also allows for functionality across all browsers, which helps developers avoid writing different code for each browser.
  3. The uncompressed file is much easier to read, but very large. The minified version is much harder to read (as it takes out all of the whitespace and comments removed from the file, making it smaller and quicker to load.
1 Like
  1. jQuery is a JavaScript Library which has codes for your desired function you want and ready to use.
  2. Developers do not have to reprogram something which is already been there.
  3. Uncompressed is the full code with comments for easy understand or read. Minified is smaller in size which has no comments, space or extra stuff allowing it to load faster when used.
1 Like
  1. jQuery it’s by far the most popular JavaScript library in use today, makes it quicker and easier to build JavaScript webpages and web apps

  2. jQuery is great for things like animations, Ajax requests, DOM manipulation, image effects, and user interface elements.

  3. The Uncompressed .js file is easy to read and modify but have larger size than The Minified .js file. The minified .js file has all comments, whitespace, and other unnecessary characters removed from the file has a smaller size and can by hard to read.

1 Like
  1. What is jQuery?
    Its a library that makes it much quicker to build to build javascript homepages.

  2. How does it help us as developers?
    It adds animated effects, slideshows, drop-down menus, drag and drop effects, compatibillity to many webbrowsere etc. to our homepage.

  3. Why do we have 2 version of jQuery - minified and uncompressed? The compressed version is slower to read, but faster for visitors to download.

1 Like
  1. jQuery is a library that makes it quicker and easier to build JavaScript webpages and web apps.
  2. jQuery helps developers to do common js tasks with minimal lines of code.
  3. There are two versions of jQuery - one to read and edit and one that is minimized to run efficiently.
1 Like

1. What is jQuery?
jQuery is a free javascript library of code. jQuery is free to download and use, and is dual-licensed under the MIT and GPL licenses.

2. How does it help us as developers?
The free library can be utilized by programmers to re-use code and quickly build interactive websites and apps.

3. Why do we have 2 version of jQuery - minified and uncompressed?
The minified version is a smaller file which you would want to put on a website to allow it to load faster. The uncompressed version is a larger file that has all the detailed comments and would be very helpful if a developer wanted to modify the code.

1 Like