When I load an https file within popup.html, it cases a significant delay.
To circumvent this issue, how can I put a function in background.js which, each time the browser is opened, fetches the version number and stores it locally?
Then, once stored locally, there is no latency when trying to fetch this internal resource (as opposed to trying to load an external https javascript file every time you click the extension popup button).
And after that, how can I call said internal resource inside the popup.html?
SUMMARY:
* how to fetch remote text value on each initial browser load?
* how to store that value locally?
* how to fetch the now locally stored number to display in popup.html?
The entire external file is simply this:
function myVersion1(){ return "1.0"; }
In other words, I want to store the value of 1.0, locally, to be later called in the popup.html. Then say I changed the number in the external file to 2.0, then I want the extension to query this and update the previous 1.0 which is stored locally, to 2.0 the next time the user opens their browser.