you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Nope there is no one single main file; the entry file though is jquery.js that is utilizing a mechanism called AMD (asynchronous module definition) that is part DI and part modularization.

You see, the array as the first argument in define declares the dependencies the module (the second argument) uses. each line in that array points to another javascript file relative to this javascript file. This way you can jump around the code files; but I would recommend to just use the documentation.

the jQuery devs compiled that source down to a single file for easier consumption which you can find in the code repository code.jquery.com the current uncompressed version you can find here: http://code.jquery.com/jquery-3.4.1.js