logoalt Hacker News

wildpeaksyesterday at 10:17 AM1 replyview on HN

Because it's a waste of bandwidth if they're not enforced at runtime, the same reason why minification exists.


Replies

ZiiSyesterday at 10:52 AM

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?