Hacker News new | ask | show | jobs
by pearjuice 4093 days ago
Though Resig's anecdotes are fun and interesting to read, it doesn't help that much with understanding the actual source code. Here's a better version in terms of readability and depth:

https://robflaherty.github.io/jquery-annotated-source/

https://robflaherty.github.io/jquery-annotated-source/docs/0...

Sadly, no longer updated since jQuery 1.6.2 which was released in 2011.

2 comments

The comments in the current jQuery source are pretty good about explaining the strange things that need to be done to work around bugs in browsers. Look for the `// Supports:` comments.
Out of curiosity, do you know of any other ubiquitous projects that have had a similar treatment?
Backbone, Marionette and Underscore all have annotated source like this linked on their project websites.
CoffeeScript's source is annotated in the same way.