smlab-niser / tirtha-public

Project Tirtha
GNU Affero General Public License v3.0
9 stars 7 forks source link

[EN] Don't run unnecessary JS on phones #42

Closed KaizenGirl1111 closed 6 months ago

KaizenGirl1111 commented 8 months ago

Feature Request / Suggestion

Issue

The web application experiences sluggish performance on low to mid-range phones. Upon inspection, it appears that several factors contribute to this issue:

Suggested Implementation

To address these performance issues, the following steps could be considered:

  1. Review Event Listeners: Evaluate the necessity of all event listeners, particularly those related to functionalities that may not be crucial for phone users. Consider removing or optimizing event listeners where possible.
  2. Separate JavaScript for Phone and Desktop: Split the JavaScript codebase into separate files optimized for phone and desktop users. This would allow for more streamlined and efficient code execution on each platform.

Other Details

Self-check:

JeS24 commented 7 months ago

Will close this once the other PR is up.