function initBreakpoints() {
if ( completed ) {
// This was fired already and completed no need to attach to the event listener.
document.removeEventListener( 'DOMContentLoaded', initBreakpoints );
return;
}

if ( 'undefined' === typeof window.tribe ) {
return;
}

if ( 'undefined' === typeof window.tribe.events ) {
return;
}

if ( 'undefined' === typeof window.tribe.events.views ) {
return;
}

if ( 'undefined' === typeof window.tribe.events.views.breakpoints ) {
return;
}

if ( 'function' !== typeof (window.tribe.events.views.breakpoints.setup) ) {
return;
}

var container = document.querySelectorAll( '[data-view-breakpoint-pointer="a3d3ab8c-94bc-4cdf-b00c-9ca4bc608c6a"]' );
if ( ! container ) {
return;
}

window.tribe.events.views.breakpoints.setup( container );
completed = true;
// This was fired already and completed no need to attach to the event listener.
document.removeEventListener( 'DOMContentLoaded', initBreakpoints );
}

// Try to init the breakpoints right away.
initBreakpoints();
document.addEventListener( 'DOMContentLoaded', initBreakpoints );
})();