I want to start decorating the site with effects, ajax and other necessary things. The jquery was advised, but it was somehow heavy. Is it easier to framework? MooTools will not work.

    6 answers 6

    Jquery normal lib. Just saying. UI - yes, heavy. The only limitations are: Opera 9.5+, IE 7+ (better than 9), FF 4+, Safari 4+ ... In old browsers, little attention was paid to javascript performance

    • jQuery-UI can be connected with the necessary functionality, so it is also not as deadly as it seems. - metazet
    • can. But for this you need to clearly understand your desires. - knes
    • I just strain their copyrights. It can not somehow turn into something bad? I just noticed that Yandex also works on it. - intranet
    • Let's distinguish between copyright, the burden of the library and the burden of learning. The first is something like a gnu-gpl (read on the site: any version that is ALREADY released under these licenses cannot be revoked) Secondly, as the metazet correctly noted, use only what you need. Third, jikvery has the best website among all javascript libraries - knes
    • Persuaded) I will go to study and start to try. But I think questions about the use of it all the same. - intranet

    The jquery was advised, but it was somehow heavy.

    If there is no knowledge in JS then any FW will be heavy. There is nothing difficult, the obstacle is only laziness.

      About weight jQuery can not worry, really weight is not deadly, another thing is that it is undesirable to load 100,500 additions to it, as very many developers like to do very much, this can really take a lot of time.

      Those. if you, for example, connect to the page jquery, jquery-ui and another, for example, 2-3 add-ons, then to improve performance, it is best to send everything into one file. Of course, I don’t know what level your site is, but if corporate, then 100% should be done that way.

      PS: To be honest, having 2 years of experience in JavaScript development, I don’t see any real benefits from using jQuery, only when I write JS in a team and only because it’s more convenient for my colleagues.

      • I just don't speak javascript freely, and there are examples of implementation on jquery. - intranet

      If it is too heavy to master, I even find it difficult to advise anything, it is easier. As for the volume of jquery production - 32 kb of everything that for modern speeds is generally weightless, taking into account that pictures under megabytes are loaded. )

        90 Kb is not a lot. (The latest version is already weighing so much). I would not advise Mootools for two reasons:

        1. The threshold of entry is higher than jQuery.
        2. It changes the Object prototype, personally it strains me.

          Described in detail how to use JQ here: jQuery for beginners . In no detail read anywhere.