How do I Defer loading of JavaScript?

This article provides instructions but I don't know where I go in the theme file to do it.
https://developers.google.com/speed/docs/insights/BlockingJS

FYI. I'm using a child theme.

I also don't want to have to redo this every single time I update the plugins, theme and/or wordpress.

Thanks so much!