UMD version doesn't work from jsDelivr because of wrong MIME
jcubic opened this issue · comments
Jakub T. Jankiewicz commented
The example shows:
<script src="https://cdn.jsdelivr.net/npm/idb-keyval@6/dist/umd.cjs"></script>
But this doesn't work because of the file extension. Browser throw error:
Refused to execute script from 'https://cdn.jsdelivr.net/npm/idb-keyval@6/dist/umd.cjs' because its MIME type ('application/node') is not executable, and strict MIME type checking is enabled.