Correctly reference JavaScript libraries in your SharePoint Framework project
SharePoint Framework Script Check
Using Rencore SPCAF Script Check you can easily reference external libraries in SharePoint Framework solutions the right way.
Additionally, you can ensure, that the CDN they are using is well performing. Read more about how it works on our blog.