Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

TQM5

Member
  • Content Count

    7
  • Joined

  • Last visited

  1. Thanks for the heads up and the ultimately correct answer!
  2. This re-solves the problem. Accepted after the original answer's solution was rendered moot by Squarespace changes to site-bundle.js, per octopus' comment.
  3. As of September 2016 this appears to be the case. The original answer now generates this error in the console: TypeError: undefined is not an object (evaluating 'this.AjaxLoader.prototype')
  4. As noted in the original question some newer themes do not allow Ajax loading do be disabled via the Squarespace Style Editor (as of September 2016). From the Squarespace docs: Unlike other templates, Ajax can’t be disabled for York, Artesia, Harris, Lange, Jasper, or Shibori. Source: https://support.squarespace.com/hc/en-us/articles/218212297-York-structure-and-style#toc-page-loading
  5. Thanks for your help—this solves the problem. Is there any difference in result whether this runs in the Header, Footer, or per-page code injection?
  6. Blunt but effective for manually disabling Ajax on Squarespace templates that do not otherwise give you the option to do so (which, as of September 2016 are York, Artesia, Harris, Lange, Jasper, or Shibori).
  7. On a “York” template [index] page, I use jQuery {Header Code Injection} to modify the URL of a [Page] link on that [index], allowing me to effectively add a [Link] to an [index] with a photo background that is displayed with the rest of the content on the [index]. The code works fine when the [index] loads or is hard-refreshed by the browser. It does not work after Ajax is used to soft-refresh only the [index] page content and not the <head>, <footer>, or other surrounding elements. This happens consistently when users navigate around the site. Squarespace notes this Ajax usage in the “York” template docs, specifying it cannot be removed. (See: https://support.squarespace.com/hc/en-us/articles/218212297-York-structure-and-style#toc-page-loading) My question: How do you detect an [index] Ajax reload in Squarespace and subsequently re-run {Header/Footer Code Injection} using jQuery (or an alternate method)? For clarity when talking about traditional web and Squarespace features simultaneously: “Squarespace proper names " [ Squarespace page types ] { Squarespace settings } < Standard HTML >
×
×
  • Create New...