If you do not have the possibility to add the SiteGainer script to the top of thetag or experience flickering for some reason, you might want to use our whitepage solution.
It needs to be added at the absolute top of thetag to work as intended, but takes 1.8kb and is hosted by our reliable CDN partner Cloudfront.
The script to add before SiteGainer and at the top of thetag is:
Always make sure you try this out on your website for all the main browsers before you put this code in production as it hides your website while it’s loading and shows it when its ready ( Reaches ”Document Ready” state ). Issues with this script might lead to your visitors seeing a white page when loading your website.