How to write Jquery in your init.coffee?


#1

Is it possible to write Jquery in your init.coffee? If yes, then where do you put the Jquery code and where do you load it?


#2

No, there isn’t a good way to use jQuery in your init.coffee. You could possibly finagle it by installing it somewhere and using a hard-coded require, but it would be pretty ugly. On the other hand, a lot of the benefit of jQuery is in giving a consistent API across multiple browsers. Since Atom is only one browser, that benefit of jQuery is unnecessary.