Why Nostr? What is Njump?
2024-08-03 08:36:08

Thomas Steiner :chrome: on Nostr: Nice job 👏: we now have script integrity support for ES modules in Chrome and ...

Nice job 👏: we now have script integrity support for ES modules in Chrome and WebKit: https://shopify.engineering/shipping-support-for-module-script-integrity-in-chrome-safari. You tell the browser about the script integrity in an import map and can then rely on the integrity check to happen even for dynamic `import()`.

```html
<script type="importmap">
{
"imports": {
"square": "./module/shapes/square.js"
},

"integrity": {
"./module/shapes/square.js": "sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
}
}
</script>
```
Author Public Key
npub1cttl3rpqmwtcqes0pvh4c04qkt7mx5jcwwwn80e0t0akq6g0jhls2t3egd