Comment by cprecioso
4 days ago
As a tip, you can use the `<meta http-equiv="Refresh">` tag [1] to make the browser automatically refresh after N seconds and keep the tab always up to date.
[1]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/me...
W3C has deprecated this for a long time now: https://www.w3.org/TR/WCAG10-HTML-TECHS/#meta-element
Soo... browsers will likely support it until the end of the internet?
Yup, unless HTML6 is backwards-incompatible, which is highly unlikely.
1 reply →
Yeah, it's not great UX for web apps, but for a toy project like this it's good enough if you don't want any JS. It still works even if deprecated, and if it stops working, it doesn't take anything away.
Does that mean I can also send the „Refresh“ http header to do that?
Yes. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Re...
In a similar vein, you can also use `Link: foo.css; rel=stylesheet` instead of `<link href="foo.css" rel="stylesheet" />` to specify stylesheets. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Li...
Only works in Firefox, sadly. But you can do some really weird stuff with it, like https://news.ycombinator.com/item?id=42234837)
TIL