Applications

Program for all platforms with these alternatives to jquey

JavaScript is one of the most popular programming languages ​​today. The possibilities it offers us are endless, both in web development and outside of it. Even video game engines, such as Unity, allow us to program in this language with the same result as if we did it in C or Java. However, JavaScript unnecessarily complicates certain tasks that many developers need to perform, especially when working with other APIs. And for this reason, on the web we can find a large number of Frameworks, among which jQuery stands out .

What is jQuery

jQuery is basically a library designed to simplify JavaScript programming . Thanks to it, instead of having to use confusing JS functions, programmers can greatly simplify the way to interact with HTML documents, manipulate the DOM tree, handle events, develop animations and add interaction through AJAX in web pages. .

Advantages and disadvantages

Its main advantage is that programmers can easily add all kinds of plugins, both public and privately developed, which greatly facilitate the programming task. In addition, it has excellent support thanks to which it solves all kinds of bugs very quickly and the integration with AJAX is one of the best we can find.

However, it is not perfect. And it is that one of the main qualities often becomes a drawback: the large number of versions that are published in a short time. It is difficult to be up to date when new versions come out every so often.

In addition, we must be very careful when implementing it in the development environment, since the smallest error can take the entire infrastructure out of service. Also, keep in mind that implementing jQuery on a website implies increasing the size of the website between 80 and 100 KB.

Finally, although it is a relatively simple framework, if we compare it with others it is not so simple.

Main alternatives

Either because we are looking for more minimalist alternatives, specialized in certain tasks, or simply because we do not like jQuery, we can find a wide variety of alternatives that will allow us to choose the one that best suits our tastes, or our objective. Here we tell you which are the best.

Zepto.js

Zepto is one of the most interesting alternatives that we can find. This is one of the minimalist alternatives that developers like the most. It is compatible with most of the jQuery syntax, but with the difference that its implementation only increases the total size of the web by 5 KB, which represents a considerable saving.

By default it only brings the most used selectors, methods and events, although its modular nature allows developers to load the modules we need.

We can get more information about this alternative to jQuery from here .

XUI

If the 5 KB of Zepto.jz sounds like a lot to you, we can still download more. XUI brings us a JS framework that we can implement with only 4.1 KB. This is also based on jQuery, so it shares most of its functions and syntax, although it is especially focused on mobile application development.

Despite being a very small framework, XUL has a large number of options and tools, with which we will be able to optimize the development of our application to the maximum.

We can access the XUI code from this link .

Snack.js

Is 4.1 KB still too much? Then we can go straight to Snack. This framework occupies less than 3 KB, which represents an even greater saving in the use of resources. This framework is based directly on JavaScript, but it has been greatly simplified both to eliminate little used and unnecessary code and to offer users the essential functions and tools to build web applications for any browser.

Although the concept is based on Zepto, it is much more basic, and for some developers it may fall short.

We can access this framework, and all its documentation, from the following link .

140medley

If the 3 KB of Snack.JS still seems like too much, then we can give 140medley a try . This framework has been designed to occupy 500 Bytes (that is, 0.5 KB) and is intended to allow you to create JavaScript fragments that will fit in a tweet. Despite its small size, it is compatible with templates, events and even AJAX. However, it is a very complicated framework to use, and we only have documentation in the form of comments in its source code.

We can access your code from GitHub .

Umbrella JS

This library is another of the lightest that we can find, occupying, like Zepto, only 4 KB, and also can even work in a compressed way. It is used both for web development and for the development of multiplatform mobile applications, optimizing load times in both cases and reducing resource consumption.

Umbrella is a framework designed from jQuery, so developers who already know this will be able to use it without problems. In addition, it is compatible with all types of APIs, such as AJAX, DOM and it even has allowed events.

Everything related to Umbrella can be found here .

Qwery

This framework has been specially designed with users who work with many DOM elements in mind. This library occupies only 1 KB and has everything necessary to work with these elements and to be able to use the CSS3 syntax in a simpler and more intuitive way. Its syntax is the same as that of jQuery, so if we have already worked with that other framework we will not have a problem.

We can get more information about this framework on GitHub .

Sizzle

Broadly speaking, Sizzle is an expanded version of Qwery. This 4K framework is focused on taking professional development to the last level. In addition to offering everything that the previous option offers, and also being based on the jQuery syntax, it has a built-in API and integrates perfectly with CSS3. Of course, we must bear in mind that it depends directly on it, so in order to use this library we must first have the previous one.

We can get it from this link .

$ DOM

Another rather small alternative, only 2 KB, is $ DOM. This maintains great compatibility between browsers, especially when we want the web to look good on computers and in responsive designs for mobiles and tablets. It is capable of processing simple animations, but in return it lacks quite important functions for some users, such as manipulation of arrays or the use of AJAX.

ReactJS

If you are looking to create a fast and compatible website, then we must try ReactJS. This framework offers us excellent compatibility with all types of browsers (even with the oldest versions of Internet Explorer). It is a very peculiar framework, since in some aspects it resembles jQuery, while in others it is too different. If we are developing websites that we want to work well in IE, we can use this framework. Otherwise, better to look for other alternatives.

We can download it from this link .

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button