jQuery Reading Assignment

What is jQuery?

  • A library that makes it quicker and easier to build JavaScript webpages and web apps.
  • Enables you to write a single line of code that usually would have taken 10-20 lines of regular JavaScript code.
  • Actually 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 developers?

  • More time efficient - developers can write a single line code in jQuery that would normally take many more times.
  • Cross-browser javascript code - it allows developers to write and run their JS code on all different browsers by simply using the right jQuery function.

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

  • well here is why;

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.

Uncompressed.js file;

  • easy to read and modify, but it’s around 160kb in size (back in 2010).
  • Thus, much larger in size and would take longer to download by visitors on your website.
1 Like
  1. a library for functional JS
  2. it helps by making coding easier and faster
  3. minified is the compress version and faster to download for users
1 Like
  1. is a library that makes it easier and quicker to build javascript webpages and web apps.
  2. jQuery makes it easier for developers to build webpages and web apps. you dont need to write the whole code yourself every time.
  3. one is larger than the other so takes more time to load. you will want to read the code in the large file and want to use the code of the smaller file
1 Like
  1. jQuery is a JavaScript library that provides many useful methods for modifying and working with DOM elements on a web page. DOM and jQuery are useful when worked together. DOM is a way to organize and track HTML elements on web pages. js and js library (jQuery) provides methods that work with the DOM to create and modify elements. This library of computer work is shared within the programming community.
  2. By using the already qualified js library of previous documentation, registered and available product of the library, programmers are able to study, review, determine the quality and usefulness of the work and then build upon the work. jQuery makes it quicker and easier to build js webpages and web apps. Often with jQuery a programmer can write a single line of code when without the library the work might have taken 10 to 20 lines of regular js code. The js library is free, the apps allow for higher quality programming, and work on many different browsers. What all can jQuery do is add animation to elements, make XML(Ajax) requests for additional data, manipulate the DOM, create image slideshows, make drop-down menus, create drag-and-drop interfaces, and so much more.
  3. The jQuery library comes in 2 forms: First the uncompressed: js file is easy to read and modify, but is around 160kb in size. This is more difficult to read. The second is the minified js file: has all comments, whitespaces, and other unnecessary characters removed from the file; is approximately 23KB and is easier and quicker to download. The minified is preferred.
1 Like

1: What is jQuery?

A library that makes it quicker and easier to build web pages and web apps using JavaScript. It’s written in JavaScript itself
and comes in the form of a single .js file.

2: How does it help us as developers?

You can create powerful JavaScript apps and create beautiful animations very easily with jQuery. One thing that I find the most useful
is how jQuery offers cross-browser compatibility, meaning your webapps will work perfectly on all browsers!

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

The uncompressed version has easy-to-read code in it, but due to that luxury the file size stands tall at 160kb
(probably more at the time of writing). The minified version has the same functionality but removed unnecessary
comments, whitespaces and other characters thereby making the code almost impossible to read but provides
better performance and quicker download speeds.

1 Like
  1. What is jQuery?
  • jQuery is a library that makes it quicker and easier to build JavaScript webpages and web apps.
  1. 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 by accessing the functions in the library.
  1. Why do we have 2 version of jQuery – minified and uncompressed?
  • An uncompressed version contains is easy to read and modify while minified removes all comments, white spaces, and other unnecessary characters to reduce the library size.
1 Like

jQuery is a JavaScript Library that makes writing code much easier and quicker. You could write all that code yourself, but why reinvent the wheel.

There is a plethora of functions that can bu used just by having this library on your webpage and what could be done with 30-40 lines of code can easily be done with 3-4 lines of code making your programming life that much easier.

jQuery comes in two versions, one with all the spaces, characters and comments in it making it larger to download and one with all of that removed so that it is much harder to read but easier to download.

1 Like
  1. jQuery is a free JavaScript library that makes writing code for websites and web apps easier and faster.

  2. jQuery allows developers to make their code cross-browser compatible very easily. It lets developers achieve more functionality with less lines of code. It lets developers use animations, manipulate the DOM, and implement various user interface elements.

  3. The uncompressed version has a larger file size, but is easier to read and modify. Whereas the minified version is much smaller in file size, but is difficult to read or modify because all of the white spaces and comments are removed.

1 Like
  1. What is jQuery?#
    A Javascript library
  2. How does it help us as developers?
    It saves us having to write code
  3. Why do we have 2 version of jQuery - minified and uncompressed?
    The minified has the fastest loading speed when visiting a website and the uncompressed file is for developers that want to see the functions in a readable manner.
1 Like
  1. jQuery is a library of js code that you can use to create webpages and webapps faster.

  2. It helps us developers becuase we can point a function to the .js rather than manually writing the function ourselves.

Minified .js - This contains only the code and nothing else like comments or whitespaces. (You want to use this one for your webpage as it’s easier to download for the users.)

Uncompressed .js - This contains everything the code has including comments and whitespaces.

1 Like
  1. jQuery is a library of pre-build program functions.

  2. Saves time, energy and serves as a platform to create more complex and intricate use cases.

  3. Uncompressed: Easier to read, but larger in size. Minified: Difficult to read, lower in size hence easier to download.

1 Like

jQuery is a library that makes it quicker and easier to build JavaScript web pages and web apps, with jQuery you can write a single line of code to achieve what would have taken 10-20 lines of regular JavaScript code.

jQuery helps us to create beautiful interactive web pages very easily just by using a few lines of code, Which would take many lines if we don’t use jQuery.

We have an uncompressed.js file version that is easy to read and modify, but it’s around 160kb in size so it results in more loading time for our webpage.

We have a minified.js file version that has all comments, whitespace, and other unnecessary characters removed from the file, squeezing the whole library into a mere 23kb, hence it makes the webpage load faster.

Conclusion:-

  • Uncompressed version is for developers to understand the functionality of the code.
  • Minified version if for developers to reduce the loading time of their webpage.
1 Like
  1. jQuery is a library that makes the process of building javascript webpages and web apps much easier and more efficient. For example, using a single line of jQuery code can save you writing 10-20 lines of regular javascript code for the same outcome.

  2. jQuery helps developers build better and more powerful javascript apps with more ease, and also helps with creating animations and adding dynamic movements to elements. jQuery also allows us to make XML (Ajax) requests to interact with a web server, manipulate the DOM, create slideshows, create drop-down menus, and much more.

  3. The uncompressed version is large (160kb) and takes more time to be downloaded by your website visitors, but its benefit is that it is easy to read and modify.
    The minified version is much smaller (23kb) making it a better option for your website visitors, but reading the code in this version is much more complicated because all comments and unnecessary spaces are removed.

1 Like

1 tons of usefull code ready to impregnate the js
2. less code. do more
3. uncompressed = readable/editable
minified = unreadable but les byte for the browser to load the website

1 Like
  1. What is jQuery?

jQuery is the most popular and commonly used JavaScript library, with the most resources that are readily available and free to use.

  1. How does it help us as developers?

It offers a plethora of features with wide ranging complexity, such as animated effects, Ajax requests, DOM manipulation and so on. This ultimately saves developers time and potential cost from not having to create code from scratch, plus it will likely reduce the chance of errors creeping into a build, as the code that’s available on jQuery is streamlined and tried and tested.

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

The uncompressed version is the full version which usually contains all comments and is in a format that’s easier to read and understand, which can be modified by a developer should they need to tweak the code. The minified version is compacted to save on file size by removing things like comments, whitespace and essentially any characters that won’t impact how the code should function. Though not easily readable, it’s smaller size boosts website performance.

1 Like
  1. What is jQuery?

Its the most popular Javascript library. Very concise, you can often write a single line of code that would usually entail 10-20 lines. Its a .js file that you link to your web page.

  1. How does it help us as developers?

jQuery makes it easy to write powerful Javascript apps and create eye catching animated objects. Can be used for animations, Ajax requests, DOM manipulation and image effects.

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

Uncompressed. Js file is easy to read and modify but it rather large; 160 kb when this article was written.

Minified .js has all comments, white space and unnecessary characters removed. Its only 23 kb, not really readable.

1 Like