A standard piece of restaurant booking code works fine on the preview site but doesn’t appear on the live site… It will appear on a live site if I don’t put it in a container.
Hi! I don’t see a difference between Preview and published.
Also it’s not possible that a JS code (<script>) works on Preview. Javascript scripts only are activated/loaded/working once the site is published.
So, “Preview” means inside of the Designer when you click preview → no JS code executed.
All the rest is “published”, wether it’s published under the .io domain, which can be called “staging”, or on the custom domain. Staging and custom domain are the same, JS code executes.
I don’t know what “Live site” means though. Both .io and custom domain are “live”.
Ah, OK, I’ve always referred to the staging site as the preview site, my bad.
In that case the code works on the staging site but not when published to the custom domain. By Live I mean the site attached to the custom domain.