#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 )
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
Component: | unfiled → build |
---|---|
Milestone: | None → 1.10.3/2.0.4 |
Owner: | set to timmywil |
Priority: | undecided → blocker |
Status: | new → assigned |
comment:2 Changed 10 years ago by
comment:3 Changed 10 years ago by
Work will be regularly updated here: https://github.com/jquery/jquery/tree/AMD
comment:4 Changed 10 years ago by
Description: | modified (diff) |
---|
comment:5 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.
Changeset: 6318ae6ab90d4b450dfadf32ab95fe52ed6331cb
comment:7 Changed 9 years ago by
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.
timmywil, could you upload your work to jquery's amd branch so that it's more visible to others? Thanks!