Html reload without javascript

I am writing a hobby project, and I was wondering if I can implement the following functions:

If the browser is disabled by JS, the page reloads every X seconds.
If the browser has JS enabled, the page receives some JS event from somewhere and reloads. But the page does not reload every X seconds.

I am trying to deploy a server in an application, and it works, but I also want to have at least a half-size backup mechanism.

Any suggestions?

Another way to formulate a question:

Can I disable this (in a cross-platform way):

<META HTTP-EQUIV="refresh" CONTENT="15">

After loading the page?

+4
source share
2 answers

Why not just put this in a <noscript> tag? Does this work? I forget if this is โ€œacceptable,โ€ but it worked a few years ago, if I remember correctly.

+5
source

Can you add a meta update to the noscript tag?

 <html> <head> <title>Meta refresh if no javascript</title> <noscript> <meta http-equiv="refresh" content="1"> </noscript> </head> <body> ... </body> </html> 
+2
source

All Articles