Hacker News new | ask | show | jobs
by jonatron 1065 days ago
If you serve this with:

    Content-Type: text/plain; charset=utf-8
You can actually have no HTML at all
3 comments

I did try that, but a few mobile browsers seemed to choke without at least something vaguely HTMLish.
I prefer “application/json”. The user can write their own interface.
What happens when server responds with text/plain and css?

https://blog.openreplay.com/incorporating-css-to-a-page-via-... (no time to check, only works in Firefox, but that's one idea on how to trick the system)

Upd: checked and it works (e. g. add `Link: <https://unpkg.com/chota@latest>;rel=stylesheet;media=all`)