I have been working on a wordpress site for a hotel that uses a javascript booking function, and I am getting an odd error.

The code in question is displayed on Home, Rooms, Restaurant, Meetings pages.

Upon clicking on the menu bar to navigate to each of those pages, ONLY the javascript widget shows up, the entire site is white. Upon refresh, it works as expected.

I have since worked out that typing in the direct URL works first time everytime, yet clicking on the menu item on the nav bar will always spring this error.

I am pulling my hair out here, any help would be appreciated.


Read more here: Javascript working, but entire site is not displaying


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: