Bug Tracker

Ticket #14113 (closed feature: fixed)

Opened 15 months ago

Last modified 11 months ago

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:
Blocking: Blocked by:

Description (last modified by timmywil) (diff)

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

comment:1 Changed 15 months ago by timmywil

  • Owner set to timmywil
  • Priority changed from undecided to blocker
  • Status changed from new to assigned
  • Component changed from unfiled to build
  • Milestone changed from None to 1.10.3/2.0.4

comment:2 Changed 14 months 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 14 months ago by timmywil

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

comment:4 Changed 14 months ago by timmywil

  • Description modified (diff)

comment:5 Changed 13 months ago by Timmy Willison

  • Status changed from assigned to closed
  • Resolution set to fixed

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

Changeset: 6318ae6ab90d4b450dfadf32ab95fe52ed6331cb

comment:6 Changed 12 months ago by dmethvin

  • Milestone changed from 1.10.3/2.0.4 to 1.11/2.1

Bulk update for new milestone

comment:7 Changed 11 months ago by wkeese@…

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.