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

Is it true that with Ajax loading, any Javascript you have on an individual page will not run at all?


DanTemple

Question

Site URL: https://about.dataclassroom.com/resource-library

I just ran into this problem with some JS embedded on an individual page not running. And when I say not running, I mean not being executed AT ALL when a user navigates to the page. Not just "not working". E.g.

   console.log("I'm running");

Having searched a bit I found some words on this page https://support.squarespace.com/hc/en-us/articles/115000253288-Ajax-loading that say:

Quote

"Occasionally, Ajax may conflict with embedded custom code"

Now, that's not quite the same as saying "none of your code will be run" at all 🙂

Anyone know the answer?

Maybe update the documentation if it is indeed the case, as my experiments seem to show.

All the best, 

Dan

 

Link to comment
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Please provide a working link to the site and point out the JS..

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi! I'm Paul, an independent Squarespace Consultant since 2007 and founder of SF Digital, building the features that Squarespace didn't include. Our mini-extensions allow you to pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect . Links in my posts may refer to SF Digital products or may be affiliate links.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...