Is it better to host Javascript in my theme or use a CDN?

Thank you for the reply