assets/theme/j1/adapter/js/j1.js in j1-template-2024.3.13 vs assets/theme/j1/adapter/js/j1.js in j1-template-2024.3.14

- old
+ new

@@ -562,13 +562,13 @@ // ----------------------------------------------------------------- var dependencies_met_page_ready = setInterval (() => { var pageState = $('#no_flicker').css("display"); var pageVisible = (pageState == 'block') ? true : false; var j1CoreFinished = (j1.getState() == 'finished') ? true : false; - var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false; + // var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false; - if (j1CoreFinished && pageVisible && atticFinished) { + if (j1CoreFinished && pageVisible) { startTimeModule = Date.now(); banner_blocks = document.querySelectorAll('[id^="banner"]').length; panel_blocks = document.querySelectorAll('[id^="panel"]').length; footer_blocks = document.querySelectorAll('[id^="footer"]').length; @@ -730,13 +730,13 @@ // ----------------------------------------------------------------------- var dependencies_met_page_ready = setInterval (() => { var pageState = $('#no_flicker').css("display"); var pageVisible = (pageState == 'block') ? true : false; var j1CoreFinished = (j1.getState() == 'finished') ? true : false; - var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false; + // var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false; - if (pageVisible && atticFinished) { + if (pageVisible) { startTimeModule = Date.now(); logger.info('\n' + 'page is being initialized'); logger.info('\n' + 'register monitors'); @@ -1353,13 +1353,13 @@ // initiate smooth scroller if page is ready and visible var dependencies_met_page_ready = setInterval (() => { var pageState = $('#no_flicker').css("display"); var pageVisible = (pageState == 'block') ? true: false; var j1CoreFinished = (j1.getState() == 'finished') ? true : false; - var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false; + // var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false; - if (j1CoreFinished && pageVisible && atticFinished) { + if (j1CoreFinished && pageVisible) { setTimeout(() => { // scroll to an anchor in current page if given in URL j1.scrollToAnchor(); }, {{template_config.page_on_load_timeout}}); @@ -1550,12 +1550,12 @@ // initiate smooth scroller if page is ready and visible var dependencies_met_page_ready = setInterval (() => { var pageState = $('#no_flicker').css("display"); var pageVisible = (pageState == 'block') ? true: false; var j1CoreFinished = (j1.getState() === 'finished') ? true : false; - var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false; + // var atticFinished = (j1.adapter.attic.getState() == 'finished') ? true: false; - if (j1CoreFinished && pageVisible && atticFinished) { + if (j1CoreFinished && pageVisible) { setTimeout(() => { // scroll to an anchor in current page if given in URL j1.scrollToAnchor(); }, {{template_config.page_on_load_timeout}});