22 Matching Annotations
  1. Dec 2022
  2. Jul 2022
    1. it falls within TACE

      Does it? Most jQuery is served minified. Even if not, the "full fat" version is not especially readable.

      There are bad reasons to despise jQuery (e.g. because it's old). But there are good reasons, too (because it's bloated and just not very good).

  3. May 2022
    1. The focus event does not bubble in Internet Explorer. Therefore, scripts that rely on event delegation with the focus event will not work consistently across browsers. As of version 1.4.2, however, jQuery works around this limitation by mapping focus to the focusin event in its event delegation methods, .live() and .delegate().
  4. Apr 2022
    1. could a few carefully-placed lines of jQuery

      Look, jQuery is not lightweight.* It's how we got into this mess.

      * Does it require half a gigabyte of dev dependencies and regular dependencies to create a Hello, World application? No, but it's still not lightweight.

  5. Feb 2022
    1. only jquery

      It would be nice if people would stop saying this—and saying it like this—as if it's a badge of honor. jQuery is a fuckin' beast. 10 years ago, the reason that the browser was being brought to a crawl on any given pages often came down to the fact that it was using jQuery. jQuery is the reason that bloated frameworks became normalized and brought us to where we are today. So, enough already with this just-a-little-jQuery stuff.

  6. Nov 2021
    1. You can stop the loop from within the callback function by returning false.

      Ritornare false da una funzione di callback all'interno di un metodo each provoca l'interruzione del loop.

  7. May 2021
  8. Jan 2020
  9. Dec 2019
  10. Jan 2017
    1. var jq = document.createElement('script'); jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(jq); // ... give time for script to load, then type (or see below for non wait option) jQuery.noConflict();

      Add jQuery in the console!

  11. Jul 2016
    1. $("#q").on("typeahead:selected", function(eventObject, suggestion, name)

      The event handler will be invoked with 3 arguments: the jQuery event object, the suggestion object, and the name of the dataset the suggestion belongs to.

  12. Jun 2016