I have a html page that doesn’t change too much and I want to cache it for one week for ex.
In this html I have some JS scripts that does some ajax requests and modifies the html.
When the browser loads this page, does the JS scripts run?
10x
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yea, it does.
JavaScript is always executed on page load, cached or not.
Unless you’re postponing the JS with a
onloadhandler, of course, then it’s executed after the page’s loaded.