Here's an example:
This code widens the canvas and it works as intended. However when I leave the homepage, going into Documents for exmaple, and navigate back to Home the script is not applied any longer. On the other hand, if I click on Home once more in the Quick Launch nav it will reload the script.
So the behavior is: After leaving and returning to the page hosting the webpart/script the script is not reapplied unless the page was reloaded twice.
Any idea why that could be?
However, I noticed that