I don't suggest it when you have items on top of the page depending upon JS (e.g. menus, slideshows, etc). If you are utilizing WP Rocket Plugin, then you can write a plugin or add another function to your own template e.g. functions.php.
my web site; "wp super cache"