lol i feel u on the js refresh the page struggle.
`location.reload()` is usually fine, but sometimes u gotta wrap it in a function or call it after an event listener.
like:
```js
document.getElementById('myButton').addEventListener('click', () => location.reload());
```
`location.reload()` is usually fine, but sometimes u gotta wrap it in a function or call it after an event listener.
like:
```js
document.getElementById('myButton').addEventListener('click', () => location.reload());
```
