Hello, newbie here, so go easy
I have a bouncy castle hire website www.kingofthecastlescotland.co.uk All my products are displayed in categories with links to individual product pages. On each product page there is a link to check availability and book online. The booking software is provided by a third party and the javascript to begin the booking process is inserted in the header of each product page via Tracking and Analytics. The link to the script is…
Here’s the problem…
When you navigate from the category page to the product page, if the link opens in current window the script does not load and the booking sequence does not display as it should. However, if the same link opens in new window, the JS loads correctly and the booking sequence runs correctly. Interestingly/frustratingly, if you go directly to the URL of the product page, the script loads fine. Likewise, if the current page is refreshed, the script runs correctly.
The developer makes the following observation…
“Regardless of navigation and how you get to that page the problem is the completion of scripts loading on page. Think of it in this way, when the page starts it only loads html first and in html this check availability is a link only, so before the scripts are loaded if you click on it, it will act as a link and open in new tab with calendar view. If you wait for all scripts to load on page (the order can be different based on network and other factors) which can take upto 4-7 seconds and then click on Check availability it would always open correctly”
He’s asked me to ask…
1). Is there any way we can tell that all scripts are loaded?
If there is, can we by default hide this availability link and show it once all scripts are loaded?
2). What could be preventing scripts loading? How do we overcome this?
The category page is www.kingofthecastlescotland.co.uk/bouncy-castles If you click “Greatest Showman Bouncy Castle”, the link opens in New window. Click the ‘Check Availability and Book Now’ link and the booking box open correctly.
Go back to the category page and click “Hey Duggee Bouncy Castle”. This page opens in current view. Click the same ‘Check Availability Box’, and the booking app opens in a new tab, without any of ‘house style’.
I have raised a ticket with Wix Support, who agreed with the observations and were able to replicate the problem. They recommended I post here.
Any help gratefully appreciated.
Regards
Andrew