What is jQuery?
jQuery was developed by John Resig and presented in 2006 at BarCamp NYC gathering. John was looking for a way to take common, repetitive task blocks in JS and boil down all the unnecessary markup to leave short, smart and understandable ‘recipes’ called methods. Instead of having to rewrite each task block over and over, developers need only call their method – jQuery takes over from there!
What are the advantages of learning jQuery?
The jQuery library simplifies a variety of programming operations, including:
- Event handling—user actions such as a mouse click, form submission, or a keyboard keystroke—is reduced to a few lines of code that can be inserted just about anywhere in the JS logic of your application.
- The DOM, or Document Object Model, is a browser interface that allows for the addition, deletion or update of HTML elements. jQuery offers multiple tools for doing so in methods like .replaceAll(), .remove(), .append().
- The jQuery .ajax() method simplifies sending asynchronous HTTP requests to the server without reloading the page. Other useful AJAX functions in the library include .getJSON(), .load(), and .serialize(), which can all be used with any platform and browser.
- Developers can create dynamic effects throughout their application by calling on several of jQuery’s animation methods such as .hide() / .show(), .slideUp() / .slideDown, and .toggle(). If the built-in animations don’t do exactly what you need, you can use .animate() to create custom animations of many CSS properties.
As search engines are great at reading content, everything within jQuery is seen as text. Therefore, dynamic content is readable by most search engines!
What are the disadvantages of using jQuery?
- The most critical disadvantage of jQuery is that it is a huge library to import. jQuery is a single JS file which contains all its DOM, events, effects, and AJAX components. The file, over time and development, has gained a significant amount of kilobytes. The first version to come out was 1.2, with a file size of 77.40 kilobytes. The latest version, 3.3.1, has an uncompressed size of 272 kilobytes!) The user, at the receiving end, must download the heavy library which requires more time to open.
Which companies use jQuery to build their products?
According to Stackshare, the following companies use or have used jQuery in their products:
What kind of jobs require jQuery skills?
Front-end web programmers who are excited about working with new and legacy systems will have no problem finding positions utilizing their jQuery knowledge. It’s a good bet that pre-2015 infrastructures function over a jQuery-based framework. For the sake of speed and efficiency, companies today are rebasing their applications, incorporating more advanced technologies. Time and money play a huge role in that process; the biggest issue there being the development teams are typically given little of both for the project. Skilled jQuery programmers are in demand to craft interim solutions to bridge the old structure to the new.
jQuery has the distinction of being the very first library learned for a multitude of developers. This is because:
- Its syntax for making AJAX calls is far simpler than the native XmlHttpRequest.
- It even works on the server side with Node.
- There are also a lot of other libraries out there you might want to use that have jQuery as a dependency.
How can I get started learning jQuery?
Before you begin, it’s best to ensure you:
- Have a pretty solid understanding of HTML and CSS;
- Can set-up a simple website and know what CSS selectors are, such as ids and classes.
- Have a fundamental knowledge of JS, especially variables and data types.
The jQuery Learning Center, a repository of implementation, utilization, and best-practice tutorials maintained by the jQuery Foundation, provides a wealth of information to help developers quickly get up-to-speed with the library. Code and documentation contributions are welcome! Don’t forget to take a look at their PlugIn Registry where you can find the perfect bit of code to enhance your application.
jQuery can be integrated either by downloading the full library directly or importing it via CDN.
How to Land Data Science Jobs in Seattle
Tips and tricks from a Metis alum and a career coach!
What is Natural Language Processing?
A Thinkful mentor gives an intro to NLP for beginner data scientists.
What are Data Structures?
Hack Reactor instructor Fred Zirdung explains arrays, trees, objects, graph data structures, & more.