4 ms·
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. [
by cprecioso 2y 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/meta#refresh https://developer.mozilla.org/en-US/docs/Web/HTML/Element/me...
- SilverSlash 2y agoTIL
- 9dev 2y agoDoes that mean I can also send the „Refresh“ http header to do that?
- greyface- 2y agoYes. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Refresh 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/Link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Li...
- notpushkin 2y agoOnly works in Firefox, sadly. But you can do some really weird stuff with it, like https://www.5snb.club/pages/contentlesshtml/ https://www.5snb.club/pages/contentlesshtml/ (https://news.ycombinator.com/item?id=42234837 https://news.ycombinator.com/item?id=42234837)
- panki27 2y agoW3C has deprecated this for a long time now: https://www.w3.org/TR/WCAG10-HTML-TECHS/#meta-element https://www.w3.org/TR/WCAG10-HTML-TECHS/#meta-element
- code_biologist 2y agoSoo... browsers will likely support it until the end of the internet?
- cprecioso 2y agoYeah, 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.