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 comment:1
component: | unfiled → build |
---|---|
milestone: | None → 1.10.3/2.0.4 |
owner: | → timmywil |
priority: | undecided → blocker |
status: | new → assigned |
Changed July 22, 2013 04:18PM UTC by 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 comment:3
Work will be regularly updated here: https://github.com/jquery/jquery/tree/AMD
Changed July 23, 2013 04:42PM UTC by 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 comment:5
Changed September 16, 2013 01:20AM UTC by comment:6
milestone: | 1.10.3/2.0.4 → 1.11/2.1 |
---|
Bulk update for new milestone
Changed November 01, 2013 03:45AM UTC by 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.