Javascript does not work on mobile and tablet

I am having trouble with my Javascript file that does not seem to work on any other devices than desktop. At first, I thought that this was a problem within the script or with how it was linked to the HTML file but found that everything works perfectly fine except when I used my tablet and mobile to test the site. I have also tried to download the most recent deploy and saw that the app.js file was not missing.

Can someone please help me detect the problem?

This is my site’s name:
And this is my Github repo:

Thank you!

interesting! Are the mobile devices using wifi (the same wifi as the desktop) or on a different network/ISP?

Hi Perry!
They are all using the same wifi!

Hey @vilepham,
I checked out your repo and this is likely an issue with which mobile browsers support ES6. You’ll need to remove your ES6 code or add polyfills for browsers that don’t support. Here’s a post that mentions a similar issue:

This site can be useful for checking compatibility:

Let us know if this helps or if you have any other questions about deploying on Netlify!

I removed the ES6 code and it worked!
Thank you so much!!

1 Like