Hacker News new | comments | ask | show | jobs | submit login

I have just added it to a Shopify store to try it and it does indeed speed things up! However I am a little concerned with adding a script from another website... it requires a lot of trust, doesn'it?





> However I am a little concerned with adding a script from another website... it requires a lot of trust, doesn'it?

Not if you use the `integrity` attribute like the page recommends. If the file hash doesn't match the one given in the tag, the browser won't run the script.

https://developer.mozilla.org/en-US/docs/Web/Security/Subres...


As another comment mentioned, you can just host the script on your own site.

Of course.... I was confused with the Cloudflare Workers thing... I just added the code directly to the website and it works fine. Thanks.

You can download the code to your own site, and serve it from there. It has an MIT license, and is on GitHub.



Applications are open for YC Summer 2019

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: