Created
October 22, 2013 11:49
-
-
Save simondahla/7099234 to your computer and use it in GitHub Desktop.
How to prevent "the blink" in Visual Website Optimizer
This file contains hidden or 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
.ab-hidden { | |
opacity:0 !important; | |
filter:alpha(opacity=0) !important; | |
background:none !important; | |
} |
This file contains hidden or 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
<div id="wrapper" class="ab-hidden"> | |
<!-- YOUR CONTENT HERE --> | |
</div> |
This file contains hidden or 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
$(function (){ //Fallback if VWO lib fails to load or control is selected. | |
setTimeout(function () { | |
$("#wrapper").removeClass("ab-hidden"); | |
}, 1000); //Change this timer at your will | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment