I'm testing a template where each page has an opacity
set to 0
and gets it set to 1
on page load with an event listener so that it appears to fade-in.
The issue I have is that when I hit "back" on mobile devices (namely iPhone 5) the JS won't execute, leaving the page with its 0 opacity.
I guess that the way it's done is to save bandwidth, but isn't there a way to force the browser to execute its JS even when hitting "back"?
Basic example of the code:
window.addEventListener('load', function() {
someelement.style.opacity = '1';
});