Better HN
topnewbestaskshowjobs
Log inSign up

mattecapu

1 karma · joined Apr 8, 2016 (10y ago) · 2 submissions

Math student, full stack web developer, amateur philosopher.
Submissions

comment 9y ago · link · parent

You can say the same thing for every "static" hosting. As long as you don't run custom code server-side, every line of code run on the client is readable by anyone whichever hosting you use. GitHub Pages offers no more guarantees than "no (custom) code is run on the server". Also I'm pretty confident the 99% of users won't look at the code in advance anyway, even if they can understand what it does.

comment 10y ago · link · parent

Would it be possible to split those libraries in smaller modules? For example Preact (https://github.com/developit/preact) has the same basic API of React but it's just 3kb because a lot of features are stripped away in optional modules. Also, using preact-compat you could replace it as-is* in your bundle right now.