A developer encountered JavaScript functionality issues with Samsung Internet Browser on their e-commerce site, while other browsers worked correctly. The problem specifically affected certain pages, including product configuration features.
Root Cause Identified:
The issue stemmed from using the let keyword to declare variables
Samsung Internet Browser’s version didn’t fully support let
Changing let to var resolved the problem
Additional Context:
Chrome DevTools flagged a non-passive event listener warning on scroll-blocking ‘touchstart’ events
The custom JavaScript contained ~2,500 lines of product configuration code
Helpful Resources Mentioned:
JSHint (jshint.com) - checks JavaScript code and highlights errors
CanIUse (caniuse.com) - verifies browser support for specific features
Another user confirmed experiencing similar browsing issues with Samsung Mobile, suggesting broader compatibility concerns with the browser’s JavaScript handling.
Summarized with AI on November 14.
AI used: claude-sonnet-4-5-20250929.
I have noticed that Samsung Internet Browser does not run javascript for my site. It works perfectly on other browsers on samsung mobiles, ios and all desktop browsers.
I’ve tried all sorts of stuff, but can’t work it out.
Here is a link to one of the pages not working. Try clicking the Order Landscape button.
If you are worried about other users who may be having the same issue and wouldn’t know that they need to enable JS in their browser, then I believe you’re in for a quite a few fallback workarounds because AFAIK most themes break down in one way or another without JS.
Added non-passive event listener to a scroll-blocking ‘touchstart’ event. Consider marking event handler as ‘passive’ to make the page more responsive.
Do you have a website? I need help with my website and am looking for an AWESOME developer. Not just good but Great! It won’t load properly on IE. I am currently testing it on IE 11 only but none of my custom code works, not even the search bar. https://lilinspirations.com I look forward to hearing back from you. Sorry for putting this reach out here, but I couldn’t find how to send you a message. (I’m new this message board / shopify community.) Thanks in advance.
Hi @Tim_Brennan Just getting back to you on this issue you’re experiencing. I really cannot tell for sure beyond what I’ve written because I do not have any device with a Samsung Internet Browser.
It’s also difficult to tell what your code there is doing - it’s 2500 lines of custom JavaScript for the product configuration alone - anywhere in there could be potential for something that isn’t supported by the Chromium version used in Samsung Internet Browser. And not even saying it has to be that. Could be something else too.
As is, I can’t replicate the issue so unless someone else can pick up from here who has access to said browser and is willing to look in to it, there’s little I can do
I had used the term let to declare two variables in one of the functions.
I changed it to var and the javascript began working again.
I’m not entirely sure why, but i think its because the version of samsung internet browser i am using to test with, doesn’t fully support the use of let.
I hope that helps someone.
If like me you are teaching yourself how to code stuff, there are some useful resources that i used to resolve the issue.
https://jshint.com allows you to check your js and highlights any errors.
You are right. Basically, I am Samsung Mobile which is highly expensive but when I browse anything I face different problems. I think these days the Samsung Browser does not work properly because they block some websites on Javascript. Further, I am using Note 9 of this brand mobile, and if you living South African region then you can see the latest price. As per some experts, Samsung is working on this issue and hopefully, it will be solved shortly. Still, I am waiting.