There have been a number of cases where users have some issues when enabling WP Rocket.
If animations have stopped
This probably means that your GSAP is being delayed and you will need to exclude it. After some testing, we have discovered that the main culprit is actually not from deferring JS, but delaying it. To be safe, please try adding the following line to exclude both defer and delay:
JS:/motionpage/core/includes/assets/js/gsap/(.*)
Seeing a blank page on a logged out session / smartphone
Once again, this is coming from the delayed JavaScript feature. So far, we have come to discover that when this is enabled, sometimes the <body>
tag will have a blank value applied to its inline styling (<body style="">
). When the user interacts with the DOM (mouse enter, push a button, scroll down, etc.) then this body style will change to: <body style="visibility: inherit;">
We can therefore fix this by adding the following CSS to a snippets plugin such as Advanced Scripts, WPCodeBox, or even adding it somewhere in your main template:
body{
visibility: inherit;
}
This will not affect any delayed JS because it is being applied by CSS, and it should stop the blank loading on logged out sessions.
If you are still facing issues, then please get in touch with us by submitting a ticket through our website.