Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kopirgan
· 1y ago · 0 comments
Looks pretty interesting.. Wonder if this can be done with nothing but browser, CSS, html and a JS without those extra CDNs.
Comments
[–]
HPsquared
1y 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.
[–]
mattigames
1y 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...
[–]
kopirgan
OP
1y ago
Yeah. Guess it'll involve some trade off in terms of UI.
[–]
cloudking
1y ago
Download the CDN libraries, point to local
[–]
aerugo_
1y ago
Yeah absolutely. Once I am sure of what libraries I will need, I will probably remove the CDN dependencies and just bundle everything.