diff --git a/src/main/content/_assets/js/openliberty.js b/src/main/content/_assets/js/openliberty.js index 18457c4ccf..ec4b6ac6ea 100644 --- a/src/main/content/_assets/js/openliberty.js +++ b/src/main/content/_assets/js/openliberty.js @@ -8,7 +8,8 @@ * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ -var openliberty = (function() { +setTimeout(() => { + var openliberty = (function() { $(document).ready(function() { var scrollAllowed = true; var prevScrollTop = 0; @@ -45,9 +46,9 @@ var openliberty = (function() { // make toc scroll off of screen at Nice Work section in guides if (typeof isBackgroundBottomVisible === "function") { - if(isBackgroundBottomVisible()) { + if(isBackgroundBottomVisible()) { handleTOCScrolling(); - } + } } prevScrollTop = currScrollTop; @@ -179,4 +180,4 @@ var openliberty = (function() { allowScrolling: allowScrolling, copy_element_to_clipboard: copy_element_to_clipboard }; -})(); +})() },1000);