What's the best way to use JS to refresh the page? or How can I force a page refresh with JS?

20 Replies, 1195 Views

for a form submit, u might wanna use `fetch()` + `then(location.reload)` instead of a full page reload.

smoother and modern.

but if u must js refresh the page, just stick with `location.reload()`.



Users browsing this thread: 1 Guest(s)