I have 4 separate pages, each with their own distinct stylesheets and scripts that I switch between using ajax and historyPopState. The issue is that downloading them repeatedly can be inefficient. I am seeking a solution to keep the stylesheets and scripts on-page temporarily disabled until needed again, without having to re-download them every time.
PS.: All 4 pages share a common stylesheet and script.
PPS.: Unfortunately, I do not have access to set headers on the server.