assets/themes/j1/adapter/js/fab.js in j1-template-2023.2.4 vs assets/themes/j1/adapter/js/fab.js in j1-template-2023.2.5

- old
+ new

@@ -152,10 +152,14 @@ // save config settings into the FAB object for global access // _this['moduleOptions'] = fabOptions; var dependencies_met_navigator = setInterval(function() { - if (j1.adapter.navigator.getState() == 'finished') { + var pageState = $('#no_flicker').css("display"); + var pageVisible = (pageState == 'block') ? true : false; + var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false; + + if (j1.adapter.navigator.getState() == 'finished' && pageVisible && atticFinished) { logger.debug('\n' + 'met dependencies for: navigator'); _this.fabLoader(fabOptions); clearInterval(dependencies_met_navigator); } }, 25);