we normally use Google Optimize for A/B testing.
A/B testing is redirecting pages with loading.
But it is redirected to next page after original page is loaded.
Users will feel flicker with first loading.
So, we need to prevent the flicker. So, Google provides Anti Flicker Code for Google Optimize.
https://support.google.com/optimize/answer/7100284?hl=en
Please check the detail.