Hacker News new | ask | show | jobs
by wildpeaks 99 days ago
Because it's a waste of bandwidth if they're not enforced at runtime, the same reason why minification exists.
1 comments

Both not minifying and including unenforced type hints consumes a little bandwidth though this can be largely offset by compression. This is an engineering trade off against the complexity of getting source maps working reliably for debugging and alerting. If I am shipping a video player or an internal company dashboard how much of my time is that bandwidth worth?