Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
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.
https://www.thedigitalroom.co.uk/products/gloss-acrylic-print-gloss-print
Any help or advice would be greatly appreciated.
Timmo.
Solved! Go to the solution
This is an accepted solution.
So i solved this.
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.
https://caniuse.com/#search=let allows you to check which browsers support stuff.
Yikes!
A browser that comes with JavaScript disabled in year 2019? Well done Samsung 😉
Maybe this link from Samsung on how to enable JavaScript in Samsung Internet Browser will help.
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.
Best wishes!
Hi Karl,
Thanks for the answer.
Javascript is enabled in the browser and works on certain pages but not others.
Any ideas?
I've found this in chrome dev tools:
Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive.
Hi Karl,
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.
Sorry, I will delete it. Didn't know how to start my own post. I'm new here. Sorry.
Hi Saandra,
I'll show you.
Click this link:
https://community.shopify.com/c/Technical-Q-A/bd-p/technical-qa
at the top of the list it says start a topic.
Click that and off you go!
Thank you Tim!!! 😄
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 😞
No Problem, thanks Karl.
This is an accepted solution.
So i solved this.
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.
https://caniuse.com/#search=let allows you to check which browsers support stuff.
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.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024