The integrity attribute on scripts and styles loaded from another domain contains the file's checksum. The browser runs the file only if the checksum matches. It protects against a situation where someone replaces a file on a third-party server (for example on a CDN).
FAQ / Glossary