Home  »  CodeLibrariesSnippetsTechnologyTools   »   Matter.js CDN URL Example

Matter.js CDN URL Example

Posted: December 17, 2022 | by Michael Bright

This is the Matter.js CDN URL.

https://cdnjs.cloudflare.com/ajax/libs/matter-js/0.18.0/matter.min.js

This is how to use Matter.js with CDN.

<script src="https://cdnjs.cloudflare.com/ajax/libs/matter-js/0.18.0/matter.min.js" integrity="sha512-5T245ZTH0m0RfONiFm2NF0zcYcmAuNzcGyPSQ18j8Bs5Pbfhp5HP1hosrR8XRt5M3kSRqzjNMYpm2+it/AUX/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

Using jsdelivr.

https://cdn.jsdelivr.net/npm/[email protected]/build/matter.min.js

Here is the HTML code.

<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/matter.min.js"></script>

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.