Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's a legit pattern. Compression of binary data. Encoding to base64 string. And packing into data uri. Golang out of the box has packages for handling the entire pipeline.

You get a small performance hit on page load from decoding. But its still performant and bandwidth-saving. For network constrained users this is a solution. Also consider the scenario where you are bootstrapping. Serving static content from a single server instance or S3. But still want to target a global audience ;)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: