Are there any circumstances where wrapping the pageBottom function in a try/catch might cause issues?
We have not observed any circumstances where wrapping the pageBottom function in a try/catch block caused any issue. We have also tested the same on our test environment and the results were positive.Please find below try/catch block script being used.
To verify that our dynamic tag management header library is loading properly on our site, we used the command _satellite.settings.notifications = true; in try block and If the code was not properly installed, we will get the reference error: _satellite is not defined and the same will caught by catch block and flag is set to 1 .
Ultimately the finally block runs and if flag is not 1 i.e. Header library is properly loaded, call the _satellite.pageBottom(); function.