Remix.run Logo
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...

panki27 4 days ago | parent | next [-]

W3C has deprecated this for a long time now: https://www.w3.org/TR/WCAG10-HTML-TECHS/#meta-element

code_biologist 4 days ago | parent | next [-]

Soo... browsers will likely support it until the end of the internet?

Cthulhu_ 4 days ago | parent [-]

Yup, unless HTML6 is backwards-incompatible, which is highly unlikely.

account42 3 days ago | parent [-]

Even then, Browsers will likely support HTML5 until the end of the internet.

cprecioso 4 days ago | parent | prev [-]

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.

9dev 4 days ago | parent | prev | next [-]

Does that mean I can also send the „Refresh“ http header to do that?

greyface- 4 days ago | parent [-]

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...

notpushkin 4 days ago | parent [-]

Only works in Firefox, sadly. But you can do some really weird stuff with it, like https://www.5snb.club/pages/contentlesshtml/ (https://news.ycombinator.com/item?id=42234837)

SilverSlash 4 days ago | parent | prev [-]

TIL