Created
December 16, 2015 12:29
-
-
Save thomasrstegelmann/31175c6175ac85b12a89 to your computer and use it in GitHub Desktop.
To avoid flickering when you try hiding elements with Optimizely, inject css styleheads into the head element instead of using Javasript to apply css to each element.
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
/* _optimizely_evaluate=force */ | |
$('head').append('<style type="text/css">.something {display:none !important;}</style>'); | |
/* _optimizely_evaluate=safe */ | |
$('head').append('<style type="text/css">.something {display:none !important;}</style>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment