Shipping Script Evaluation & Optimisation - 'Not Secure' - Please Help

Topic summary

  • Intermittent “Not Secure” warning appears on the mobile site, a recent issue.

  • After tapping Add to Cart, the ATC button freezes and the page becomes unresponsive.

  • The suspected cause is a shipping date calculator script. The author asks if the script is optimized and whether it could trigger both the security warning and the ATC freeze.

  • The domain otherwise appears normal, suggesting no obvious configuration issues.

  • A code snippet is referenced and is central to diagnosing the problem, but the actual script content is not included here.

  • No solutions or decisions have been made yet. The author is seeking guidance, and the discussion remains open.

Summarized with AI on December 20. AI used: gpt-5.

Hi everyone, :grinning_face:

I’ve been troubleshooting an issue where the “Not Secure” warning sometimes appears on our mobile site. This has only recently started happening and seems to coincide with our Add to Cart (ATC) button freezing up — preventing any further interaction on the page after hitting ATC.

Everything on our domain looks normal, but I suspect the issue may stem from this shipping date calculator code (see below). I’m also wondering if this code is optimised. Could it be contributing to the “Not Secure” error and freezing the ATC button?

Here’s the script:


Any insights would be much appreciated. Thanks in advance!