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

I also like self contained pages, especially how they simplify long term maintenance.

For images I do a different hack, I encode images to base64 and embed them via CSS `background: url('data:image/jpeg;base64,/...')`, or img src. The base64 encoding is not very efficient though, so I wouldn't do this for larger images.

Example: https://merely.xyz (page background has a subtle "concrete" pattern).



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: