Expand Minimize

Don't bundle external libraries in web part

Don't include external libraries in the web part bundle

CheckId SPF120501
TypeName DontBundleExternalLibrariesInWebPart
Severity CriticalWarning
Type BundlesStats

By default, external libraries referenced in SharePoint Framework client-side web parts are bundled together with each web part. This unnecessarily bloats the size of the generated bundle. If there are a number of web parts on the page, each with its own copy of the library included in the bundle, then users loading the page will end up loading the same library multiple times, which will significantly slow down loading the page. Instead you should load libraries from external URLs: either from a public CDN or a hosting location that your organization controls.

Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.