What's the best way to reload a web page using JavaScript? or How can I reload a web page with JavaSc

18 Replies, 1008 Views

"What's the best way to reload a web page using JavaScript?"

Hey folks! ๐Ÿ‘‹ So Iโ€™ve been messing around with reload web page javascript stuff, and Iโ€™m kinda stuck.

I know `location.reload()` works, but sometimes it feels like overkill? Like, does it always fetch fresh from the server, or can it use cache?

Also, what about `window.location.href = window.location.href`? Does that even do the same thing? Or is there a smarter way?

And why does my reload web page javascript code sometimes just... not work? ๐Ÿ˜… Am I missing something obvious?

Would love to hear how yโ€™all handle this. Cheers! ๐ŸŠ

Messages In This Thread
What's the best way to reload a web page using JavaScript? or How can I reload a web page with JavaSc - by - 03-12-2024, 03:40 AM



Users browsing this thread: 1 Guest(s)