Why does Squarespace sometimes not load my widget?
Sometimes when you refresh the page on Squarespace, the widget does not load and does not show on the page.
It could be that your template is using Ajax loading, which means the page data is retrieved without refreshing the whole website. For some reason, sometimes the JavaScript embed that we provide is not fetched; therefore, the widget does not even get a chance to load (however it loads fine when you do a complete page refresh).
There are a few ways to solve this:
- You could disable ajax loading on your Squarespace template.
- Alternatively, you could split up your ZenLocator code and load the JavaScript part in the footer of every page, and the
<div>
part only where you want the widget to appear. To do that, navigate to your widget (for example Map > Setup > Embed Code), and select "I want to show multiple widgets on multiple pages". Then follow the steps to install embed code on the Squarespace site.