Skip to main content

Bug Tracker

Side navigation

#14113 closed feature (fixed)

Opened July 08, 2013 04:55PM UTC

Closed August 15, 2013 07:52PM UTC

Last modified November 01, 2013 03:45AM UTC

AMD-ify jQuery source

Reported by: timmywil Owned by: timmywil
Priority: blocker Milestone: 1.11/2.1
Component: build Version: 1.10.1
Keywords: Cc:
Blocked by: Blocking:
Description

AMD is coming to jQuery. We'll divide up the source code into logical modules (starting with the modules that we currently have). The CDN build of jQuery will not include the AMD wrappers (the build process will get an update).

Some other tidbits:

  • ready is now its own module that depends on Deferred
  • some modules are split up into more manageable pieces
  • "var" folders designate modules that simply contain shared var declarations (will be transformed to var 'fileName' = 'return value' during the build)
  • even more modules will be removable
  • Removing sizzle removes all code that depends on sizzle (e.g. animated selector)
  • Some modules contain small blocks that cause the whole module to need a dependency. These small blocks have been separated into their own modules so they can be associated with their dependencies and optionally excluded. For instance, manipulation only requires ajax for evaluating scripts (see src/ajax/_evalUrl).

*This description will get updated as the vision progresses.*

Attachments (0)
Change History (7)

Changed July 08, 2013 05:03PM UTC by timmywil comment:1

component: unfiledbuild
milestone: None1.10.3/2.0.4
owner: → timmywil
priority: undecidedblocker
status: newassigned

Changed July 22, 2013 04:18PM UTC by m_gol comment:2

timmywil, could you upload your work to jquery's amd branch so that it's more visible to others? Thanks!

Changed July 23, 2013 04:37PM UTC by timmywil comment:3

Work will be regularly updated here: https://github.com/jquery/jquery/tree/AMD

Changed July 23, 2013 04:42PM UTC by timmywil comment:4

description: AMD is coming to jQuery. We'll divide up the source code into logical modules (starting with the modules that we currently have). The CDN build of jQuery will not include the AMD wrappers (the build process will get an update). \ \ Some other tidbits: \ \ - shared variables will each be their own module (size is not a concern here as the wrappers get stripped) \ - ready will be its own module that depends on Deferred \ \ *This description will get updated as the vision progresses.* \ \ AMD is coming to jQuery. We'll divide up the source code into logical modules (starting with the modules that we currently have). The CDN build of jQuery will not include the AMD wrappers (the build process will get an update). \ \ Some other tidbits: \ \ - ready is now its own module that depends on Deferred \ - some modules are split up into more manageable pieces \ - "var" folders designate modules that simply contain shared var declarations (will be transformed to var 'fileName' = 'return value' during the build) \ - even more modules will be removable \ - Removing sizzle removes all code that depends on sizzle (e.g. animated selector) \ - Some modules contain small blocks that cause the whole module to need a dependency. These small blocks have been separated into their own modules so they can be associated with their dependencies and optionally excluded. For instance, manipulation only requires ajax for evaluating scripts (see src/ajax/_evalUrl). \ \ \ *This description will get updated as the vision progresses.* \ \

Changed August 15, 2013 07:52PM UTC by Timmy Willison comment:5

resolution: → fixed
status: assignedclosed

AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.

Changeset: 6318ae6ab90d4b450dfadf32ab95fe52ed6331cb

Changed September 16, 2013 01:20AM UTC by dmethvin comment:6

milestone: 1.10.3/2.0.41.11/2.1

Bulk update for new milestone

Changed November 01, 2013 03:45AM UTC by wkeese@gmail.com comment:7

Not sure where you want feedback on this feature (or on the 2.1 beta in general) but I'd like to be able to require() a single module and get the selector code, see

http://forum.jquery.com/topic/load-jquery-via-amd-from-source for details.