Bug Tracker

Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#14113 closed feature (fixed)

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 (last modified by timmywil)

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.*

Change History (7)

comment:1 Changed 10 years ago by timmywil

Component: unfiledbuild
Milestone: None1.10.3/2.0.4
Owner: set to timmywil
Priority: undecidedblocker
Status: newassigned

comment:2 Changed 10 years ago by m_gol

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

comment:3 Changed 10 years ago by timmywil

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

comment:4 Changed 10 years ago by timmywil

Description: modified (diff)

comment:5 Changed 9 years ago by Timmy Willison

Resolution: fixed
Status: assignedclosed

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

Changeset: 6318ae6ab90d4b450dfadf32ab95fe52ed6331cb

comment:6 Changed 9 years ago by dmethvin

Milestone: 1.10.3/

Bulk update for new milestone

comment:7 Changed 9 years ago by [email protected]

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.

Note: See TracTickets for help on using tickets.