Created
April 21, 2021 02:19
-
-
Save haroldao/ccfb62d1cfae489b56e2255992ed1a26 to your computer and use it in GitHub Desktop.
Anti Flicker // https://support.google.com/optimize/answer/7100284
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<HTML> | |
<HEAD> | |
<!-- anti-flicker snippet (recommended) --> | |
<style>.async-hide { opacity: 0 !important} </style> | |
<script>(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date; | |
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')}; | |
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c; | |
})(window,document.documentElement,'async-hide','dataLayer',4000, | |
{'CONTAINER_ID':true});</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment