Purpose : For Google Ads
I need to reload a page without loading js content ( which will be in file) as JS will be bigger in size it will get loaded only for first time and for next page reloads only dynamic content ( like ads , dynamic text) will keep on changing. Is there a way to do this ?
There are two ways:
You can make sure that the JS file can be cached by sending the appropriate HTTP headers to the browser.
If users stay a long time on your site and work with it like a desktop app, you can create an initial page and load the JS once. If you convert all links to send AJAX requests which just replace the content part of the page, the JS won’t be loaded again because you never “leave” the page.