posted 2 weeks ago
Hi everyone,
I’m having an issue with JavaScript on my client’s site. The site works fine on desktop, but on mobile devices, certain elements like buttons and dropdowns are either unresponsive or slow to load.
Key issues:
JS Functions not Executing: Some scripts (like document.querySelector) seem to fail on mobile.
Third-Party Scripts: We’re using libraries via CDN (like jQuery). Could there be a version conflict affecting mobile?
Lazy Loading/Media Queries: Could hiding/showing elements based on viewport be causing conflicts with JS?
No major console errors, but I’m stuck. Any tips on why JS might behave differently on mobile?
Thanks!