Reloading a page on the fly is easy with JavaScript.
Need to reload a page using JavaScript? It's quite simple.
window.location.reload();
Use just a little JavaScript and you'll be able to postpone loading images until they are available in the viewport.
webpack creates its own scope for your bundle, but you can make it globally available.
Learn the basics of callback functions in JavaScript.