Cornerstone: Page JS not firing in iOS Browsers until action is taken

I have several pages that use Cornerstone’s Page JS to run various javascript actions. One of the pages has stopped executing the Page JS code on iOS browsers (tested on Safari and Chrome) until I tap or scroll on the screen.

Page: https://env-syntorial-staging.kinsta.cloud/buy-now/

How to recreate:

  1. I’ve added “console.log(“TEST LOG”)” as the first line in the Page JS
  2. Open the page on any computer browser and you’ll see “TEST LOG” in the dev console (followed by a bunch of other things).
  3. Open that same page on iOS Safari or Chrome and you won’t see “TEST LOG” in the console (let alone any of the other following code).
  4. Tap or scroll on the screen and the Page JS will then fire.

Any idea what would prevent Cornerstone from executing the Page JS on just one particular page?

Hey Joe,

Cornerstone does not have a function to stop custom JS codes. I have tested Pro and X sites and they output the custom JS on iOS.

Please test for a plugin conflict and custom code conflict first and clear all caches before testing again.

  1. Testing For Theme Related Issue
  2. Testing For Plugin Conflict
  3. Theme Update
  4. Child Theme
  5. Css/Js Customization

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.