Skip to content

Commit dbc4608

Browse files
committed
Docs: add note about code organization with AMD
Fixes gh-2750 Close gh-2832
1 parent 10c1254 commit dbc4608

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ Alternatively, you can **load tests in AMD** to avoid the need for rebuilding al
134134
Click "Load with AMD" after loading the test page.
135135

136136

137+
### Repo organization
138+
139+
The jQuery source is organized with AMD modules and then concatenated and compiled at build time.
140+
141+
jQuery also contains some special modules we call "var modules", which are placed in folders named "var". At build time, these small modules are compiled to simple var statements. This makes it easy for us to share variables across modules. Browse the "src" folder for examples.
142+
137143
### Browser support
138144

139145
Remember that jQuery supports multiple browsers and their versions; any contributed code must work in all of them. You can refer to the [browser support page](https://jquery.com/browser-support/) for the current list of supported browsers.

0 commit comments

Comments
 (0)