When was jquery developed




















JavaScript and JQuery create the same sense of loss and confusion. When discussing JavaScript and JQuery people will say the funniest things about the two, one quote I heard a long time ago on the subject:. JavaScript I hate, what we should do is get rid of it. But JQuery I love! What is so funny about the above statement is without JavaScript there would be no JQuery.

All good tools have a foundation and without a doubt, JavaScript has created a lot of modern-day tools that assist in building features into our website and online application experience. Why the confusion around this subject of JavaScript? JavaScript is a computer language that is used inside your web browser.

It is dominantly used for interface interactions meaning the flashy moving parts inside your website. If you have every seen a slide show on the internet like the image below it is more likely to be JavaScript Scripting that will be doing the hard work behind the scenes. But JavaScript can do much more if you have a Gmail account with Google the email client uses JavaScript to create the features and functionality creating a rich user experience. They are designed to handle rendering a page as well as updating it.

In the same way that we might break a codebase down into multiple self-contained functions and classes, breaking a UI down into reusable components makes it easier to build and maintain a complex website.

The second advantage is that the newer frameworks encourage the declarative paradigm, in which the developer describes what the UI should be like and leaves it up to the framework to make the changes necessary to get there.

This approach is in contrast to the imperative approach that is characterized by jQuery code. With jQuery, you explicitly write the steps to make any changes.

On the other end of the spectrum, you have simple websites that only need a small amount of interactivity or dynamic content. For these cases, I would still default to not using jQuery because we can do much more now with native APIs. Even if I did need something more powerful, I would look for a specific library for the use case, such as axios for Ajax or Animate. Using libraries like these is generally more lightweight than loading the entirety of jQuery for just a bit of its functionality.

I think the best justification for using jQuery is that it provides comprehensive functionality for powering the front end of a website. Instead of having to learn all the various native APIs or special-purpose libraries, you can read just the jQuery documentation and immediately be productive. Another use case emerges when you must support old versions of IE. In that case, jQuery serves as well as it did when IE was the dominant browser.

It has helped a generation of developers make websites that work on every browser. While it has been supplanted in many respects by new libraries, frameworks, and paradigms, jQuery played a huge, positive role in making the web what it is today. Barring a significant change in jQuery functionality, it seems likely that jQuery will continue to experience a slow but steady decline in usage in the next several years.

New websites tend to be built from the beginning with more modern frameworks, and the good use cases for jQuery are becoming rarer. Some people are unhappy with the rate of churn in web development tooling, but to me, that is a sign of rapid progress. Its successors have done the same. Debugging code is always a tedious task. Other element selector methods include document.

Support for these methods is limited to the newest browsers, so be careful when trying to use them for a little while longer. Both return a nodeList of elements matching either by the name attribute or element type. A nice thing about these selection methods is they are all supported by the element or node object as well. This means you could select a parent element containing a series of child elements and select matching elements within the main parent.

It does a lot of cleanup for you, etc. Its actually where the beauty of jQuery shines through. But if you really think about it, directly setting a style property is not that hard.

The following example shows how to set the marginRight property:. So where is the benefit? That means it does a lot of things and takes time. Setting the properties directly is much faster. After DOM selection, manipulation is probably the next more important feature jQuery offers.

But that too can easily be done without jQuery. Like the jQuery css method, the manipulation module us over lines of JavaScript. You can insert elements before and after target elements, select child nodes, etc. Here is an example method from my panoramaJS library. It ultimately gets the first panel and moved it to the last position in the list.

Ultimately this how the carousel is continuous in either direction. I chose this method as an example because it show how you can manipulate a node's style and move elements around all in one quick coding motion.

The getFirstPanel method actually loops through the childNodes to get the first panel at this time. I am working on a cleaner solution. The reason I did that at the time is the firstChild will return a text node if there are characters before the actual first child element, admittedly one of the quirks of the native API.

I realize riding without the jQuery training wheels is not for everyone, yet. But jQuery is something every web developer should start trying to live without. Start with using the native DOM selectors and go from there. But the beauty of jQuery is how it helped force and even provide some awesome guidance for browser manufacturers add native functionality that we as developers need to make modern web applications.

But sadly as features and functionality have been added to jQuery so has the weight. Despite the news about gigabit Ethernet and powerful CPUs, the market has gone mobile. Bandwidth and performance matter. With the average web site size reaching sizes that would not fit on a 3.

My personal research routinely reveals sites using in excess of kb to perform minimal activities. The jQuery Foundation would like to thank Joel G. Kinney of Fort Point Legal , whose generous pro-bono counsel has been invaluable in transitioning to an independent organization.

About jQuery Created in by John Resig as a JavaScript library to provide an intuitive approach for working with the DOM and Ajax, jQuery has steadily gained popularity among the development community and is the most widely-adopted JavaScript library in use today.

Founded by a group of leading JavaScript developers and architects, the jQuery Foundation is dedicated to three goals: supporting development of the jQuery Core, UI, and Mobile projects; providing jQuery documentation and support; and fostering the jQuery community. Donations to the jQuery Foundation will be used to further the goals of the Foundation. About Software Freedom Conservancy Software Freedom Conservancy is a non-profit organization that helps promote, improve, develop and defend Free, Libre and Open Source software projects.

Conservancy is a home to twenty-eight software projects, each supported by a dedicated community of volunteers, developers, and users.



0コメント

  • 1000 / 1000