Some Squarespace themes use AJAX loading by default. With AJAX loading enabled, it can sometimes happen that your POWR Apps will not load on initial page load. If your POWR App appears only after refreshing the page, you are probably affected by this issue.
Fortunately, there are two possible solutions for this issue:
Solution #1: Disable AJAX loading in your Squarespace settings
AJAX loading is enabled by default for the following Squarepace templates:
- Brine, Basil, Clay, Feed, Foster, Greenwich, Hatch, Heights, Hunter, Hyde, Jaunt, Juke, Keene, Lincoln, Marta, Mercer, Mojave, Motto, Nueva, Rally, Rover, Sonora, Thorne
- Farro, Haute
- Skye, Foundry, Tudor (Blog landing page only)
- Tremont, Carson, Henson
- York, Artesia, Harris, Lange, Jasper, Shibori, Taylor
To disable AJAX loading for your Squarespace site, follow these steps:
- In the Home Menu, go to Design > Style Editor.
- Find the Site: Loading setting.
- Uncheck Enable Ajax Loading.
- Save your changes.
Your App should then show up with initial page load.
Solution #2: Move modified POWR script to your website's head
Some templates rely on AJAX loading, and AJAX loading can therefore not be disabled. This is true for the following templates:
- Skye, Foundry, Tudor (Blog landing page only)
Since disabling AJAX loading isn't an option, you will instead need to follow these steps:
- In the Squarespace Editor, go to Settings > Advanced > Code Injection > Header (as seen in this article from Squarespace's Help Center).
- Add this version of the POWR script into the Header:
<script src="//www.powr.io/powr.js" external-type="squarespace" powr-load="sync"></script> - Remove the original script from your HTML element on the page and keep just the HTML div containing your App ID.
Comments
1 comment
Ti adoro! il tuo suggerimento mi è stato veramente utile. Ho risolto diversi problemi! Grazie Grazie Grazie <3
Please sign in to leave a comment.