Solved

Samsung Internet Browser does not run javascript. Please help

Tim_Brennan
Excursionist
91 1 9

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.

 

 

 

Accepted Solution (1)
Tim_Brennan
Excursionist
91 1 9

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.

 

 

 

 

 

View solution in original post

Replies 12 (12)

KarlOffenberger
Shopify Partner
1873 184 901

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!

Tim_Brennan
Excursionist
91 1 9

Hi Karl,

 

Thanks for the answer.

Javascript is enabled in the browser and works on certain pages but not others.

 

Any ideas?

Tim_Brennan
Excursionist
91 1 9

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.

Sandraa
Tourist
11 0 2

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.

Tim_Brennan
Excursionist
91 1 9
Can you post that in your own thread
Sandraa
Tourist
11 0 2

Sorry,  I will delete it.  Didn't know how to start my own post.  I'm new here. Sorry.

Tim_Brennan
Excursionist
91 1 9

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!

 

 

Sandraa
Tourist
11 0 2

Thank you Tim!!!  😄

KarlOffenberger
Shopify Partner
1873 184 901

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 😞

Tim_Brennan
Excursionist
91 1 9

No Problem, thanks Karl.


Tim_Brennan
Excursionist
91 1 9

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.

 

 

 

 

 

andy13583
Visitor
1 0 0

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.