Y
Hacker News
new
|
ask
|
show
|
jobs
by
kopirgan
522 days ago
Looks pretty interesting.. Wonder if this can be done with nothing but browser, CSS, html and a JS without those extra CDNs.
3 comments
HPsquared
522 days ago
For truly locked-down environments that's the way to go. You can only be sure the code will always be the same if it's 100% local and offline, or verifying signatures somehow.
link
mattigames
522 days ago
You can verify signatures of JS and CSS files to make sure they are only loaded if they are exactly what you expect them to be by using the "integrity" parameter, see
https://developer.mozilla.org/en-US/docs/Web/Security/Subres...
link
kopirgan
522 days ago
Yeah. Guess it'll involve some trade off in terms of UI.
link
cloudking
521 days ago
Download the CDN libraries, point to local
link
aerugo_
520 days ago
Yeah absolutely. Once I am sure of what libraries I will need, I will probably remove the CDN dependencies and just bundle everything.
link