Should I load third-party libraries from vendor or cdn?

discourse-math might be a good reference - it has a number of ‘vendored’ scripts under the /public directory. Or a simpler example could be discourse-client-performance.