Flicker & Flicker Control
"Flicker" explained — why it occurs, and how to prevent it on sites that are optimized for fast first paint.
What is flicker?
Flicker control for Headline Testing only customers
Option 1: Headline flicker control disabled
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Page title -->
<title>My Site's Homepage</title>
<meta name="description" content="My Site's Homepage">
<!-- Set canonical URL -->
<link rel="canonical" href="https://mysite.com/article-xyz.html" />
<!-- Load Chartbeat tracker and tester -->
<script type='text/javascript'>
(function() {
/** CONFIGURATION START **/
var _sf_async_config = window._sf_async_config = (window._sf_async_config || {});
_sf_async_config.uid = #####; //CHANGE THIS
_sf_async_config.domain = 'mysite.com'; //CHANGE THIS
_sf_async_config.flickerControl = false;
_sf_async_config.useCanonical = true;
_sf_async_config.useCanonicalDomain = true;
_sf_async_config.sections = ''; //CHANGE THIS TO YOUR SECTION NAME(s)
_sf_async_config.authors = ''; //CHANGE THIS TO YOUR AUTHOR NAME(s)
/** CONFIGURATION END **/
function loadChartbeat() {
var e = document.createElement('script');
var n = document.getElementsByTagName('script')[0];
e.type = 'text/javascript';
e.async = true;
e.src = '//static.chartbeat.com/js/chartbeat.js';
n.parentNode.insertBefore(e, n);
}
loadChartbeat();
})();
</script>
<script async src="//static.chartbeat.com/js/chartbeat_mab.js"></script>
</head>
<body>
</body>
</html>Option 2: Headline flicker control enabled
Flicker control for Image and Headline Testing customers
Option 1: Image and headline flicker control enabled
Option 2: Image and headline flicker control disabled
Next steps
Last updated
Was this helpful?