What are the patterns of using JS libraries?

Last week in Office Hours, @Gabriel Woodger made a remark about JS libraries being sort of the same thing over and over. I’ve been thinking about that as well, and indeed bring it up in the JS in FM course.

What are those standard things we do when working with JS libraries? What have you found yourself doing over and over when you start up using a new widget?

Feel free to speak on this from your starting point, whether it is the JS Dev Environment or other methods.

List all that you do over and over here. Don’t worry about repeating what others have already stated. The more thoughts we have the better.